post_json_minify
Minify valid JSON text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Minify valid JSON text.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It communicates that the operation is a transformation and sets an input precondition ('valid JSON text'), but it does not describe invalid-input handling, the exact output shape, or whether the operation has any side effects. This is adequate for a simple pure transformation but not rich.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is five words long, front-loaded, and contains no filler. Every word contributes: 'Minify' states the action, 'valid' sets the precondition, and 'JSON text' identifies the resource.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter transformation tool with no annotations and no output schema, the description is largely adequate: it identifies the input and operation. However, it omits return-value details, error behavior, and any routing among closely related JSON tools, leaving a modest completeness gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema only defines 'text' as a string with 0% description coverage, so the tool description must add meaning. 'Minify valid JSON text' tells the agent that the parameter must contain valid JSON, which is essential semantic information beyond the raw schema. For a single obvious parameter, this is sufficient.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action ('minify') and a specific resource ('valid JSON text'). This clearly distinguishes it from siblings like post_json_pretty, post_json_validate, and post_json_repair, since each has a distinct verb and purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The word 'valid' implies a prerequisite: this tool is meant for valid JSON input, not for repairing or validating it. However, it does not explicitly name alternatives or state when to prefer this tool over sibling tools such as post_json_pretty or post_data_transform, so the guidance is only implied.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.