format_json
Validate raw JSON and return it pretty-printed or minified. pretty (default true) uses two-space indentation; false minifies. sort_keys (default false) sorts object keys alphabetically and leaves array order alone. Input is capped at 1 MB. Invalid JSON raises with the line and column and is not charged. Pay-per-call via x402 (USDC on Base), no account or API key.
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": "format_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| pretty | No | ||
| sort_keys | No |