Skip to main content
Glama

json_minify

Remove insignificant whitespace from JSON strings to produce compact valid JSON for storage or transmission.

Instructions

Minify a JSON string by removing insignificant whitespace. [conductor: verified pure command]

Input Schema

NameRequiredDescriptionDefault
jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. The '[conductor: verified pure command]' note signals a side-effect-free, deterministic transformation, which is genuinely useful context, but the description says nothing about behavior on invalid JSON (error vs. passthrough) or the return type.

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

Conciseness5/5

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

One functional sentence, front-loaded with the verb and outcome, followed by a short provenance tag. Nothing is padded or buried.

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 trivial single-parameter pure string transform, the description covers the operation and input adequately; the main omission is the error/return behavior on malformed input, which matters little given the tool's simplicity.

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 0%, so the description must compensate, and it only partially does: it identifies the input as a JSON string, which maps to the single 'json' parameter. With one self-evidently named required parameter, this is the minimum viable level.

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 (minify) and resource (a JSON string) plus the exact mechanism (removing insignificant whitespace). It is unambiguous against siblings like fix_json or json_extract, though it never explicitly names or contrasts them.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this versus fix_json (which also touches malformed JSON) or when minification is desirable. Usage is only implied by the tool name and operation.

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