{"uid":"cap_i4Jc1zhrSnW2O5c7_9qc9","slug":"agent402-tools-json-schema-validator-67674cc4","name":"agent402.tools JSON Schema Validator","description":"Validate a JSON document against a JSON Schema (draft-07 subset) and get the list of violations. Supports type, required, properties, items, enum, const, min/max, length, pattern, format, anyOf/allOf/oneOf/not, additionalProperties. Deterministic - check an agent's structured output before you trust it.","url":"https://agent402.tools/api/json-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"the JSON value to check (any type)"},"schema":{"type":"object","description":"a JSON Schema (draft-07 subset)"}}},"responseSchema":{"type":"json","example":{"valid":true,"errors":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hoo0pN4Hwqq2YMdy9_xm_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON document against a JSON Schema (draft-07 subset) and returns a list of violations","exampleAgentPrompt":"Check if this JSON object {\"name\": \"Alice\", \"age\": \"thirty\"} is valid against this schema: {\"type\": \"object\", \"properties\": {\"name\": {\"type\": \"string\"}, \"age\": {\"type\": \"integer\"}}, \"required\": [\"name\", \"age\"]} — and list any violations.","exampleUseCases":null,"resultDescription":"A deterministic list of schema violations found in the submitted JSON document, including which constraints were violated (type mismatches, missing required fields, enum failures, pattern errors, etc.). Returns an empty violations list if the document is valid.","failureModes":["Invalid or malformed JSON schema provided — endpoint may return a schema parsing error","Data field missing from request body — validation cannot proceed without a value to check","Unsupported JSON Schema keyword used outside the draft-07 subset — constraint silently ignored or error returned","Network timeout or payment failure via x402 protocol — call not executed"],"whenToPreferThis":"Use this endpoint when you need deterministic, rules-based JSON schema validation against draft-07 constraints including type, required, properties, items, enum, const, min/max, length, pattern, format, anyOf/allOf/oneOf/not, and additionalProperties. Prefer this over custom validation logic when you need a structured list of violations rather than a pass/fail result, or when validating API payloads, configuration files, or data contracts programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:55:56.467Z","isFirstParty":false}