{"uid":"cap_aOwLV4lWRL83ur9ciKRfT","slug":"json-schema-validate-a061920e","name":"JSON Schema Validate","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://grokzilla.shop/api/skills/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"},"path":{"type":"string"},"type":{"type":"string","const":"http"},"method":{"type":"string"},"bodyType":{"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"path":"/api/skills/json-schema-validate"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__OPtZSv9iGYuobPfCLvZo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an HTTP request's body and path against a JSON Schema definition, returning whether the payload is valid.","exampleAgentPrompt":"Can you validate this HTTP POST request body against a JSON Schema — the method is POST, path is /api/orders, and the body is {\"orderId\": \"abc123\", \"quantity\": 2}?","exampleUseCases":[{"title":"Pre-flight API request validation","prompt":"Before I send this POST request to /api/users with body {\"name\": \"Alice\", \"email\": \"alice@example.com\"}, can you validate it against the expected JSON Schema so I know it won't be rejected?"},{"title":"Agent workflow input guard","prompt":"I'm building an agent that calls external APIs — can you validate the JSON body my agent is about to send via POST to /api/payments to make sure it's schema-compliant before it fires?"},{"title":"Debug a schema mismatch error","prompt":"I keep getting validation errors on my POST requests to /api/products — can you run my request body {\"sku\": \"X99\", \"price\": \"ten\"} through the JSON Schema validator to find what's wrong?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating whether the request passed schema validation, along with the validated endpoint path. A truthy 'ok' means the input conforms to the schema; false indicates a violation.","failureModes":["Missing required 'input' field returns a validation error","Missing 'type' or 'method' inside input object causes schema rejection","Malformed JSON body results in parse error","Payment failure (402) if USDC micropayment is not provided or insufficient","Unsupported schema draft version may cause unexpected behavior"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-use JSON Schema validation for HTTP request bodies without standing up your own validation infrastructure. Ideal for AI agents that need to guard API calls dynamically, or developers who want instant schema compliance checks without integrating a full validation library. Best suited for single-call validation at $0.006 USDC per request via x402 micropayment rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:49:05.167Z","isFirstParty":false}