{"uid":"cap_urgF6NKbZWti4bjD9Dnc_","slug":"agent-payload-tools-json-validate-f1afb158","name":"Agent Payload Tools – JSON Validate","description":"Validate a JSON value against the supported compact schema subset.","url":"https://api.agent-payload-tools.workers.dev/json-validate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"description":"JSON value to validate."},"schema":{"type":"object","description":"Supported compact validation schema.","propertyNames":{"type":"string"},"additionalProperties":{}}}},"responseSchema":null,"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_xdlPVGmwHUqWBPeugSYgQ","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 value against a compact schema definition and returns whether the value conforms","exampleAgentPrompt":"Can you validate this JSON object against my schema — the value is {\"name\":\"Alice\",\"age\":30} and the schema requires name to be a string and age to be an integer?","exampleUseCases":[{"title":"API response schema guard","prompt":"Before I pass this API response downstream, validate it against my schema — the value is {\"id\":\"abc123\",\"status\":\"active\",\"count\":5} and the schema should require id and status to be strings and count to be a number."},{"title":"AI tool output verification","prompt":"My AI tool just returned this JSON: {\"result\":\"success\",\"items\":[1,2,3]} — can you check it against a schema that expects result to be a string and items to be an array?"},{"title":"User-submitted data validation","prompt":"A user submitted this JSON form payload: {\"email\":\"test@example.com\",\"age\":25} — validate it against a schema that requires email to be a string and age to be an integer greater than zero."}],"resultDescription":"Returns whether the provided JSON value conforms to the supplied compact validation schema, along with any validation errors or constraint violations identified.","failureModes":["Malformed JSON value causes a parse error","Schema definition uses unsupported keywords and is rejected","Missing required fields in the request body returns a 400 error","Value is valid JSON but schema is not an object, causing schema parse failure","Payment not included or insufficient USDC causes a 402 response"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, schema-driven JSON validation step inside an AI agent pipeline without standing up your own validation infrastructure. Particularly useful when you want to guard against malformed tool outputs or user-submitted payloads before passing them to downstream services, and you are already operating in the x402 micropayment ecosystem on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:00.014Z","isFirstParty":false}