{"name":"json-schema-validate","description":"Validates any JSON document against any JSON Schema, draft-07 or 2020-12. Returns valid boolean, total error count, and per-error instance_path + schema_path + keyword + message. Powered by @cfworker/json-schema (MIT), a spec-walker validator with built-in format keyword support (email / uri / date / uuid / etc.). Check whether an LLM's structured output matches the spec you asked for, validate an API response against your documented schema, or add a verification gate to an agent pipeline. 200KB schema cap + 500KB data cap keep CPU bounded. Use it as a JSON Schema validator, JSON validator, structured-output verifier, or contract checker.","price":"$0.003","method":"POST","input_schema":{"properties":{"schema":{"type":"object","description":"The JSON Schema document. Max 200,000 chars when stringified."},"data":{"description":"The JSON data to validate. Any value. Max 500,000 chars when stringified."},"draft":{"type":"string","description":"Schema draft: '2020-12' (default) or 'draft-07'."},"valid_only":{"type":"boolean","description":"If true, skips per-error detail and returns only { valid, error_count }. Default false."},"formats":{"type":"boolean","description":"Deprecated no-op; format keywords (email, date, uri, uuid, etc.) are always validated. Accepted for backward compatibility."}},"required":["schema","data"]},"input_example":{"schema":{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"number"}},"required":["name"]},"data":{"name":"Ada","age":38}},"output_example":{"valid":true,"draft":"2020-12","error_count":0,"truncated":false,"errors":[]},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}