validate_json
Validate JSON documents against a JSON Schema, reporting every error with JSON Pointer paths to fix extraction mistakes in a single pass.
Instructions
Validate a JSON string against a JSON Schema (Draft 2020-12).
Reports EVERY validation error with a JSON Pointer path, not just the first, so extraction mistakes can be fixed in one pass.
Args: data: The JSON document to validate, as a string. json_schema: The JSON Schema to validate against, as a string.
Returns {valid, error_count, errors:[{pointer, message, validator}]}; 'pointer' is a JSON Pointer into the data ('' means the document root).
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>",
"json_schema": "<json_schema>"
},
"name": "validate_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| json_schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||