json_preflight
Deterministic broken-JSON preflight & repair (GET ?data=... or POST raw body): strips markdown code fences, JS comments, trailing commas, single-quoted strings & closes truncated brackets, returning valid_as_is, repaired, repairs_applied, top_level_type, key_count & parsed JSON. Price $0.002 per call via x402, USDC on Base.
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": {
"data": "<data>"
},
"name": "json_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw JSON or broken JSON string to validate and deterministically repair (strips markdown code fences, JS comments, trailing commas, single-quoted strings, and closes truncated brackets). |