Skip to main content
Glama

Tidy Byte Tools API

json_repair

Fix broken or incomplete JSON, including text from language models.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "json_repair"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does little with it. It does not say whether repair is best-effort or strict, whether malformed input is rejected, whether the original content is preserved or altered, or what the caller receives back — all material for a fix-up tool whose output shape is undefined.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler; the most important clause (fix broken JSON) leads. It is arguably too terse for a tool with no annotations or output schema, but there is no wasted wording to cut.

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?

The tool has no annotations, no output schema, and an untyped request body, so the description is the sole source of behavioral information — and it supplies only one line. Failure modes, return format, and input payload shape all remain unstated.

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?

Parameter count is zero, giving a baseline of 4, but the schema is an open POST body (additionalProperties: true) with no named properties, and the description says nothing about how the JSON to repair is supplied. That leaves the only real input — the payload — undocumented in both places.

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?

States a specific verb and resource: "Fix broken or incomplete JSON," plus the notable scope addition "including text from language models." An agent can tell this is a repair tool, but the description never names or contrasts the adjacent json_format sibling, so the repair-vs-reformat boundary is left to inference.

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

Usage Guidelines3/5

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

"Broken or incomplete" implies the triggering condition, and the LLM-text clause hints at a common source of malformed input. There is no explicit when-to-use vs json_format, no statement of what counts as repairable (truncation? trailing commas? prose-wrapped output?), and no guidance on when to give up.

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