Validate JSON against a JSON Schema
util_json_validateCheck that JSON (e.g. an LLM's structured output or an API payload) is valid JSON and matches a JSON Schema. Returns valid true/false and every error with its JSON pointer path, keyword and a plain message (missing required property, wrong type, pattern, enum, min/max, format email/uri/date-time/uuid/ipv4, additionalProperties, $ref to #/$defs, allOf/anyOf/oneOf/not, if/then/else). Use before passing generated JSON downstream; feed the errors back to the model to repair it. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.
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": {
"data": "<data>",
"schema": "<schema>"
},
"name": "util_json_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The JSON to check, as a JSON string | |
| schema | Yes | The JSON Schema, as a JSON string |