validate_json
Validate a JSON string and get exact error location with line and column, plus stats on node count, max depth, file size, and parse time.
Instructions
Validate a JSON string. Returns whether it is valid, and if not, the exact error location (line and column). Also returns stats: node count, max depth, file size, parse time.
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": "validate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON string to validate. |