Validate JSON against a JSON Schema
json_validateValidate data against a JSON Schema (core keywords incl. type, required, properties, enum, pattern, formats, anyOf/oneOf, $ref). Returns every error with its JSON path. Use before returning structured output.
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>"
},
"name": "json_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | JSON value or JSON string | |
| repair | No | Try json_repair on invalid input (default true) | |
| schema | No | JSON Schema (object or string); omit to check syntax only |