Skip to main content
Glama

Tidy Byte Tools API

Repair JSON

json_repair
Read-onlyIdempotent

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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the description need not restate it. The description adds only the LLM-text scope; it says nothing about what happens when input is unrepairable, whether partial repairs occur, or what the caller receives back.

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

Conciseness5/5

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

A single short sentence with the core purpose front-loaded and the qualifying scope clause placed after it. No filler, no redundancy, nothing that could be cut without losing information.

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

Completeness3/5

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

With no output schema and no annotation coverage of return values, the description should say what a caller gets back (repaired JSON string? best-effort with warnings?) and how failure is signalled. For a simple transform tool the purpose is clear, but the outcome contract is left entirely unspecified.

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

Parameters4/5

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

There are zero declared parameters, which sets the baseline at 4 under the scoring rules; the schema is a free-form POST body with additionalProperties true. The description's mention that the payload may be model-generated text does add modest meaning about accepted input, though it never states that the entire body is the JSON document to repair.

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 ('Fix') and a specific resource ('broken or incomplete JSON'), and adds scope ('including text from language models'). It implicitly separates itself from json_format (formatting valid JSON vs. repairing invalid JSON), though it does not name that sibling explicitly.

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?

Usage is only implied: an agent can infer it should call this when JSON fails to parse, and the 'text from language models' clause hints at the LLM-output scenario. There is no explicit when-to-use vs. json_format guidance and no statement about when this tool should not be used.

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