Skip to main content
Glama

post_json_repair

Repair common malformed JSON formatting issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of explaining behavior. It says only that it repairs malformed JSON but does not disclose what transformations are applied, whether valid JSON is passed through unchanged, what happens if repair is impossible, or whether the response contains the repaired text.

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

Conciseness3/5

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

The description is very short and front-loaded, with no filler words. However, it is under-specified; the brevity comes at the cost of omitting behavioral details and parameter clarification, so it is not 'appropriately sized' for the tool's needs.

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

Completeness2/5

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

With no annotations, no output schema, and an undocumented parameter, the description is incomplete. An agent cannot confidently call this tool without knowing what counts as a repairable issue, what output to expect, or how it differs operationally from the JSON validate/minify/pretty siblings.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not clarify that the single 'text' parameter is the JSON string to repair. The parameter name and tool name offer a weak inference, but the description fails to specify expected input format, size limits, or how the repaired result is returned.

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 names a specific verb, 'Repair', and a resource, 'common malformed JSON formatting issues', which clearly distinguishes it from siblings like post_json_validate, post_json_minify, and post_json_pretty. It is not a tautology and gives a usable idea of the tool's job, though 'common' and 'issues' remain somewhat vague.

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 use this tool versus alternatives such as post_json_validate or post_json_minify. The description does not mention when it should be preferred, what inputs are suitable, or what scenarios are not covered.

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