Check JSON data against a JSON Schema
json_validateValidates JSON data against a JSON Schema (draft 2020-12): valid true or false, and up to 50 errors with the instance path, the keyword and the message. Schema and data are each limited to 200 KB. Remote $ref targets are not fetched. No network call. Related tools on this server, for a different need: json_repair when you need to convert broken JSON to valid JSON and check it on a schema. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
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>",
"data": "<data>"
},
"name": "json_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Any JSON value to validate | |
| schema | Yes | A JSON Schema (object or boolean) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | ||
| valid | No | ||
| errors | No | ||
| source | No | ||
| checkedAt | No | ||
| errorCount | No |