Validate JSON against a JSON Schema without AI
validateJsonSchemaValidate JSON against a JSON Schema without AI. Use this to check supplied data against a supplied JSON Schema before relying on it. Returns valid, and each failure with the JSON Pointer of the failing value, the schema path, the keyword, and the reason. Nothing is repaired or coerced. Drafts 2020-12 (default), 2019-09, 7, and 4. References resolve only inside the supplied schema; nothing is fetched. The pattern and patternProperties keywords are refused with unsupported_keyword because user-supplied regular expressions can hang a server. Limits: 64 KiB total, 100 errors returned (error_count covers all), 64 nesting levels. Nothing is retained. Valid means this instance satisfies this schema, not that the data is correct. Same as POST https://bozos.si/api/v1/schema-validate.
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": {
"schema": "<schema>",
"instance": "<instance>"
},
"name": "validateJsonSchema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | 2020-12 | |
| schema | Yes | The JSON Schema object. | |
| instance | Yes | Any JSON value to validate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | Yes | ||
| valid | Yes | ||
| errors | Yes | ||
| safety | Yes | ||
| validator | Yes | ||
| error_count | Yes | ||
| interpretation | Yes | ||
| schema_version | Yes | ||
| errors_truncated | Yes |