util_json_validate
JSON Schema validator — Validate a JSON document against a JSON Schema (draft-07 / 2019-09 / 2020-12 keywords): type, enum, const, numeric and string limits, pattern, formats (email, date, date-time, uuid, uri, ipv4, ipv6, hostname), arrays (items, prefixItems, contains, uniqueItems), objects (required, properties, patternProperties, additionalProperties, dependentRequired), allOf/anyOf/oneOf/not, if/then/else and local $ref/$defs. Returns valid plus a list of errors with JSON-pointer instance and schema paths. Pass data= and schema= as JSON strings; optional schema_url= to fetch a schema instead. Offline, instant. Price: $0.002 USDC (Base, via x402).
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 | e.g. {"name":"Ada","age":-3,"email":"ada@example"} | |
| schema | Yes | e.g. {"type":"object","required":["name","age","email"],"properties":{"name":{"type":"string"},"age":{"type":"integer","minimum":0},"email":{"type":"string","format":"email"}},"additionalProperties":false} |