Skip to main content
Glama

Agent Data Tools: Utilities

Minify JSON

json_minify
Read-only

Remove all unnecessary whitespace from JSON and report the size before and after. Use to shrink payloads or prompts. Example: text={ "a" : 1 }. Price $0.003/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

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe JSON text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds genuinely useful context beyond them: cost per call, free-tier terms, that failed calls are free, and that repeats are not free (which reinforces idempotentHint=false). "Reads or computes only and changes nothing" restates readOnlyHint but usefully confirms no side effects.

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?

Front-loaded with the core action, then use case, example, pricing, and safety. Every sentence is short and mostly earns its place, though the pricing/billing sentence is dense and slightly crowds an otherwise terse definition.

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?

For a one-parameter tool with no output schema, the description covers the action, an input example, and the return value (size before/after), plus cost and side-effect profile. Nothing needed to call it correctly is missing.

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 coverage is 100% for the single required "text" parameter, so the schema already carries the load and baseline 3 applies. The example (text={ "a" : 1 }) mildly illustrates that raw, whitespace-laden JSON is the expected input, but adds little beyond the schema.

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 gives a specific verb+resource ("Remove all unnecessary whitespace from JSON") plus a secondary behavior (reporting before/after size). However, it never names the obvious sibling json_format (pretty-print), so differentiation is done only implicitly through the concept of minification.

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

Usage Guidelines3/5

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

"Use to shrink payloads or prompts" gives one clear use case, which is better than no guidance, but there are no when-not conditions and no alternatives named (json_format, json_validate, json_repair). The agent must infer which JSON sibling to pick.

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.