json_repair
Autonomous malformed JSON healer and syntax repair (50 sats via L402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| malformed_json | Yes | Malformed JSON string |
Autonomous malformed JSON healer and syntax repair (50 sats via L402).
| Name | Required | Description | Default |
|---|---|---|---|
| malformed_json | Yes | Malformed JSON string |
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 behavioral burden. It usefully discloses the cost and payment mechanism (50 sats via L402), which is real context an agent needs before calling. However it omits what happens on unrepairable input, whether output is deterministic, and whether it truncates or errors.
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 economical sentence with no filler, and the payment clause is appended rather than buried. It is front-loaded with the core function.
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?
There is no output schema, so the description was responsible for explaining what comes back (a repaired JSON string? a diff?), and it does not. For a sanitization tool where the caller must know the success/failure shape, this is a notable 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?
Only one parameter, and the schema already documents it at 100% coverage, so the baseline of 3 applies. The description adds no format or type detail beyond "malformed JSON string".
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 a specific verb+resource: repairing/healing malformed JSON. This clearly distinguishes it from siblings like regex_oracle or code_sandbox, which handle different inputs. The wording "autonomous ... healer" is slightly promotional but the function is unambiguous.
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?
No guidance on when to use this versus validating parsing yourself, code_sandbox, or agent_schema_enforcer. The only conditional information given is the price, not the selection criteria.
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.