jsonschema_validate
Validates document against schema (JSON Schema draft-07 or 2020-12). Reports one specific violation per call, not an aggregated list.
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>",
"document": "<document>"
},
"name": "jsonschema_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | a JSON Schema (draft-07 or 2020-12) | |
| document | Yes | the JSON value to validate against schema |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| reason | No |