Validate Json Schema
validate_json_schemaValidate a JSON value against a JSON Schema (draft-07 subset: type, required, properties, additionalProperties, items, enum, const, min/max, minLength/maxLength, pattern, minItems/maxItems, uniqueItems, format). Returns {valid, errors:[{path,message}]}. Keyless, offline.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": {
"age": 30,
"name": "John Doe",
"email": "john@example.com"
},
"schema": {
"type": "object",
"required": [
"name",
"age"
],
"properties": {
"age": {
"type": "number",
"minimum": 0
},
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
}
}
}
},
"name": "validate_json_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The JSON value to validate (any type). | |
| schema | Yes | The JSON Schema to validate against. |