json_format
Validate JSON and reformat it: pretty (indented), minify, or custom indent width.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | ||
| style | No | 'pretty', 'minify', or an indent number | pretty |
Validate JSON and reformat it: pretty (indented), minify, or custom indent width.
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | ||
| style | No | 'pretty', 'minify', or an indent number | pretty |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden. It never discloses the failure mode on invalid JSON (error vs. diagnostic payload), whether it is a pure read-only transform, or any input size limits — the most important traits for a validator.
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?
A single front-loaded sentence with the action first and the modes enumerated compactly. No filler or restatement of the tool name.
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?
With no output schema and no annotations, the description should ideally state what is returned (formatted string vs. structured result) and what happens on invalid input. For a two-parameter utility it is workable but leaves the validation outcome ambiguous.
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?
Schema description coverage is 50%: the 'style' parameter is already documented in the schema with almost identical wording, while 'json' has no schema description and none is supplied either. The description adds the useful detail that a custom indent width is a number, but only marginally beyond the schema.
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?
States specific verbs (validate, reformat) and resource (JSON), and enumerates the three output modes. No sibling among the listed utilities (text encoding, hashing, unit conversion, etc.) handles JSON, so no differentiation is needed.
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 three modes imply when each style applies, but the description never states when to choose this tool or how it behaves versus a plain text formatter. Usage is inferable rather than stated, and there are no explicit alternatives or exclusions.
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.