Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Apache Avro Tools

$ avro-tools Foundation Low Risk
Apache Software Foundation · Database & Data · Apache-2.0 · macos / linux / windows

avro-tools is the Apache Avro Java CLI (avro-tools wrapper or java -jar avro-tools.jar) providing getschema, tojson, fromjson, count, and cat subcommands to inspect binary Avro files and convert records to JSON.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install avro-tools
CLI vs MCP Decision CLI Only

Decodes binary Apache Avro container files locally (avro-tools getschema, avro-tools tojson --head 20) without custom Java/Python readers.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Outputs NDJSON/JSON via tojson and getschema with --head, but JVM startup is heavy and CLI help/error formatting is minimal.

  • Supports tojson --head --pretty and getschema
  • Sparse CLI help and JVM startup latency
Trust & Safety 22 / 25

Read-only stdout inspection for getschema, count, and tojson; writes only via shell redirection or fromjson.

  • Read-only inspection subcommands by default
Setup & Portability 9 / 15

Requires a Java JRE (java -jar avro-tools.jar or Homebrew wrapper script) rather than a standalone native binary.

  • JVM/JAR distribution (brew install avro-tools)
Utility & Efficiency 10 / 15

Standard tool for .avro container files, though datafusion-cli or fastavro can be faster for bulk analytics.

  • Canonical Apache Avro container inspection CLI
Maintenance & Lineage 8 / 10

Official Apache Software Foundation project (apache/avro) under Apache-2.0.

  • Official ASF apache/avro repository
Docs & Verifiability 5 / 10

CLI subcommands are sparsely documented on avro.apache.org compared to the core Java/Python Avro APIs.

  • Minimal dedicated CLI reference in upstream docs

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates purely on local .avro and .avsc files.

Side Effects
Read-Only Local Write
Cost & Quotas

Apache-2.0 open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# avro-tools Agent Rules
- Run `avro-tools getschema` and `avro-tools count` before decoding records.
- Always pass `--head <N>` on `avro-tools tojson` for unknown `.avro` files to avoid flooding stdout.

Agent-Ready Command Recipes

Safe Read-Only Queries

Extract the embedded Avro writer schema
avro-tools getschema data.avro

Prints the JSON .avsc schema embedded in the container header without decoding records.

Preview the first 20 Avro records as JSON
avro-tools tojson --head 20 --pretty data.avro

Decodes the first 20 records from data.avro and formats them as readable JSON.

Controlled Writes & Previews

Convert Avro container records to a JSON Lines file
avro-tools tojson data.avro > records.jsonl

Exports all Avro records as newline-delimited JSON into records.jsonl.

Strengths for Agents

  • + getschema and tojson --head decode binary .avro files deterministically into JSON.
  • + Official Apache Software Foundation reference implementation.

Caveats & Pitfalls

  • ! Requires Java runtime (JRE) and suffers noticeable JVM cold-start overhead.
  • ! Running avro-tools without arguments prints a bare list of subcommands with minimal flag docs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI