Skip to main content
Glama

JSON toolbox: validate, format, minify, schema and YAML

pack_json_toolbox
Read-only

Everything about one JSON document in a single call: valid or not with the error's line and column, pretty-printed (optionally with sorted keys), minified with the bytes saved, an inferred JSON Schema, structure statistics (depth, objects, arrays, keys, value types) and the same data as YAML. Up to 200 KB. Cheaper than the separate JSON tools. Use to inspect API responses, clean model output or document a payload. Example: json={"name":"agent","tools":["weather","search"],"active":true,"limits":{"daily":100}}. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
jsonYesThe JSON text (up to 200 KB)
sortKeysNotrue to sort object keys in the formatted output

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations establish read-only and non-destructive, and the description adds pricing ($0.01/call, first 25 free, failed calls free), a 200 KB size cap, and an explicit warning that repeat calls are billed — which usefully explains the idempotentHint=false annotation. It also states 'reads or computes only and changes nothing', reinforcing the safety profile with concrete context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The output list is front-loaded and every clause carries information; the example and pricing note each earn their space. It is dense — one long chain of clauses — but not padded with filler, and the length is justified by the breadth of operations covered.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden and discharges it by enumerating each return artifact: validity plus error location, formatted text, byte savings, inferred schema, statistics, and YAML. Size limits, cost model, and safety are all covered, so an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds value beyond the schema: a concrete json example showing nested objects, arrays, and mixed types, the 200 KB limit restated in context, and the note that sorted keys apply to formatted output only. The sortKeys parameter is still only loosely characterized ('optionally with sorted keys').

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific scope statement ('Everything about one JSON document in a single call') and enumerates every operation: validation with line/column errors, pretty-print with optional sorted keys, minify with byte savings, schema inference, statistics, and YAML output. It explicitly positions itself against the sibling single-purpose tools (json_validate, json_format, json_schema, json_to_yaml) by calling itself cheaper than using them separately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete use cases ('inspect API responses, clean model output or document a payload') and a routing incentive ('cheaper than the separate JSON tools'). It doesn't say when NOT to use it — e.g., that a single-purpose sibling may be preferable if you only need one output and want to avoid the $0.01 charge — but the routing intent is clear enough for an agent to choose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.