validate_json_schema
Validate a JSON Schema against its meta-schema and optionally validate data against it, returning errors with instance and schema paths plus line numbers for text input.
Instructions
Check a JSON Schema against its meta-schema and, if given, validate data against it. Every error has the instance path, the schema path and, for text input, the line.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_json_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Force a draft; by default from $schema, else 2020-12. | |
| schema | No | The JSON Schema, as JSON or YAML text (or a JSON object). | |
| instance | No | Data to validate: JSON or YAML text, or the value itself. Optional. | |
| schema_path | No | A local file instead of `schema`. | |
| instance_path | No | Data to validate, from a local file. |