json_format
JSON validator and formatter, pretty-print or minify JSON. Check whether text is valid JSON; if it is, return it pretty-printed (or minified) with its top-level type and size; if not, return the error and where it is. Price: $0.002 per call (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": {
"json": "<json>"
},
"name": "json_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | ||
| indent | No | ||
| sort_keys | No |