JSON repair (fix LLM output)
json_repairFix broken JSON from LLMs: code fences, leading prose, comments, single quotes, bare keys, trailing commas, Python True/None, truncated strings and unclosed brackets. Returns parsed JSON + list of fixes. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "json_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | broken JSON text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||