{"uid":"cap_2MOnAavlj0vQQ2e_hLE_A","slug":"json-schema-validate-f51efd2a","name":"JSON Schema Validate","description":"opentools utility endpoint","url":"https://chargers-borders-cedar-fig.trycloudflare.com/tools/json-schema-validate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"unprobed","priceSource":"registry","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":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_GnZMsRYWLetoZJPOldLfL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7c32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON body against a JSON Schema definition, returning validation results","exampleAgentPrompt":"Can you validate this JSON body against JSON Schema — it's a POST request with a body object like {\"name\": \"Alice\", \"age\": 30} and I need to know if it's valid before I send it?","exampleUseCases":[{"title":"Pre-flight API request validation","prompt":"Before I send this POST body to the payments API, can you validate it against the JSON schema to make sure it's correctly structured? The body is {\"amount\": 100, \"currency\": \"USD\", \"recipient\": \"bob@example.com\"}."},{"title":"Form submission data check","prompt":"I have a form submission body from my app — can you check if this JSON object passes schema validation before I persist it? It came in as a PUT request and the body is {\"userId\": \"abc123\", \"email\": \"user@example.com\"}."},{"title":"CI pipeline schema compliance test","prompt":"As part of my automated pipeline, validate this PATCH request body {\"status\": \"active\", \"updatedAt\": \"2024-01-15\"} against JSON Schema 2020-12 and tell me if there are any validation errors."}],"resultDescription":"Returns a validation outcome indicating whether the provided JSON body is valid according to JSON Schema rules, along with any specific validation errors or constraint violations found in the input.","failureModes":["Missing required 'input' field returns a 400-level error","Missing 'type' or 'method' fields inside input causes schema rejection","Invalid HTTP method (not POST, PUT, or PATCH) causes enum validation failure","Malformed JSON body causes parse error","Empty or null body object may produce unexpected validation behavior"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless JSON Schema validation check for HTTP request bodies (POST, PUT, or PATCH). It is well-suited for pre-flight validation before sending data to downstream APIs, automated CI pipeline checks, or any scenario where you need to confirm schema compliance without setting up a full validation library locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:34:11.593Z","isFirstParty":false}