{"uid":"cap_GcLxSFyTPiEdkXsdZW8sb","slug":"x402-tools-json-validate-5427c758","name":"x402-tools JSON Validate","description":"Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.","url":"https://x402.nichospt.net/json-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"The JSON value to validate (any type)"},"schema":{"type":"object","description":"A JSON Schema (draft 2020-12 compatible)"}}},"responseSchema":{"type":"json","example":{"valid":true,"errors":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i4Q2h4YiBL2w1qXZEp2lD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON value against a provided JSON Schema (draft 2020-12) and returns whether it is valid along with any errors","exampleAgentPrompt":"Check if this JSON object { \"name\": \"Alice\", \"age\": \"thirty\" } is valid against the schema { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"required\": [\"name\", \"age\"] } and tell me what errors there are.","exampleUseCases":[{"title":"Validate API response before processing","prompt":"Before I store this API response in the database, check if it's valid against my expected schema { \"type\": \"object\", \"properties\": { \"id\": { \"type\": \"integer\" }, \"email\": { \"type\": \"string\", \"format\": \"email\" }, \"active\": { \"type\": \"boolean\" } }, \"required\": [\"id\", \"email\", \"active\"] } — here's the payload: { \"id\": \"abc\", \"email\": \"user@example.com\" }. Tell me all the errors."},{"title":"Check config file schema compliance","prompt":"I have this config file { \"timeout\": 30, \"retries\": \"five\", \"endpoint\": \"https://api.example.com\" } and I need to know if it matches my schema { \"type\": \"object\", \"properties\": { \"timeout\": { \"type\": \"integer\" }, \"retries\": { \"type\": \"integer\" }, \"endpoint\": { \"type\": \"string\", \"format\": \"uri\" } }, \"required\": [\"timeout\", \"retries\", \"endpoint\"] }. Is it valid and what needs to be fixed?"},{"title":"Validate user input before storing","prompt":"A user just submitted this form data { \"username\": \"jdoe\", \"age\": -5, \"role\": \"superadmin\" } and I want to validate it against { \"type\": \"object\", \"properties\": { \"username\": { \"type\": \"string\", \"minLength\": 3 }, \"age\": { \"type\": \"integer\", \"minimum\": 0 }, \"role\": { \"type\": \"string\", \"enum\": [\"admin\", \"editor\", \"viewer\"] } }, \"required\": [\"username\", \"age\", \"role\"] } before saving it. What validation errors come back?"}],"resultDescription":"Returns a JSON object with a boolean `valid` field (true/false) and an `errors` array listing any JSON Schema validation errors found in the input data. If valid, errors is an empty array.","failureModes":["Malformed schema object causes a 400 or error response","Data field missing from request body","Schema not draft 2020-12 compatible causing unexpected behavior","Payment not settled causes 402 response and endpoint is blocked","Network timeout on large or deeply nested JSON inputs"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-use JSON Schema validation call without standing up your own validator, especially in agentic workflows where you need to verify arbitrary JSON payloads against draft 2020-12 schemas on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:35:26.100Z","isFirstParty":false,"canonicalSlug":"x402-tools-json-validate-5427c758"}