Skip to main content
Glama

json_minify

Remove all unnecessary whitespace from JSON and report the size before and after. Use to shrink payloads or prompts. Side effects: none on any outside system (it only reads or computes), but each successful call costs $0.001 in USDC on Base or another supported network, paid with x402, or the same amount in prepaid card credits when the request carries an API key from /credits. That payment is why the tool is not marked read-only or idempotent: repeating a call charges again. Failed calls are never charged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe JSON text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond annotations, the description discloses key behavioral details: no effects on outside systems, a $0.001 per-success cost, payment via x402 or prepaid credits, repeat calls charged again, and failed calls never charged. It also explains why the tool is not marked read-only or idempotent, which is exactly the kind of context annotations alone cannot convey.

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 description is front-loaded with purpose and usage, then behavior and cost. It is somewhat long because of the payment explanation, but that detail is materially useful and earns its place.

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

Completeness4/5

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

For a simple one-parameter tool with no output schema, the description covers purpose, usage, side effects, cost, and payment behavior well. It does not specify what happens with invalid JSON input or exactly what the return value includes beyond size reporting, leaving a minor gap.

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

Parameters3/5

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

Schema description coverage is 100%, and the single text parameter is already documented in the schema. The description does not add syntax or format details beyond the schema, so the baseline score of 3 is appropriate.

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

Purpose4/5

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

The description states a specific verb and resource: remove unnecessary whitespace from JSON and report size before and after. It also gives a concrete use case, shrinking payloads or prompts, though it does not explicitly differentiate itself from siblings like json_format or json_repair.

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 explicitly says to use this tool to shrink payloads or prompts, giving clear usage context. It does not name alternatives or when-not-to-use conditions, so it falls short of a 5.

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.

Resources