JSON Formatter
format_jsonUse this when you need to check whether JSON is valid or make it readable. Example prompt: "Why does this JSON fail to parse?" Validate and pretty-print JSON with a real parser. Returns formatted JSON or the exact parse error. Costs 1 credit. The answer is deterministic.
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": {
"json": "<json>"
},
"name": "format_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON text to validate and format | |
| indent | No | Spaces per indentation level, 0 to 8 (default 2) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | Whether the input passed every check | |
| output | No | The final output of the workflow | |
| result | No | The result, when it is not an object |