{"uid":"cap_TtJKlGI0iDx9H1eNtELNV","slug":"json-schema-verifier-2a291a54","name":"JSON Schema Verifier","description":"Independently verify an agent's output before you pay: an invoice or any deliverable, checked against your JSON Schema and rules like sums matching totals. Pass/fail, % passed, fix hints and a signed receipt. $0.02 USDC, no signup, x402 v2.","url":"https://fastapi-service-5ag4.onrender.com/verify/schema?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rules":{"anyOf":[{"type":"array","items":{"type":"object","title":"ConsistencyRule","required":["type","field"],"properties":{"type":{"enum":["sum_equals","gte","lte","exists_in","unique"],"type":"string","title":"Type"},"field":{"type":"string","title":"Field"},"value":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Value","default":null},"equals":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Equals","default":null},"values":{"anyOf":[{"type":"array","items":{}},{"type":"null"}],"title":"Values","default":null},"in_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Field","default":null},"tolerance":{"type":"number","title":"Tolerance","default":1e-9,"minimum":0},"other_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Field","default":null},"equals_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equals Field","default":null}},"description":"One caller-supplied cross-field rule. Paths use dotted keys with '[]'\nas an array wildcard, e.g. 'items[].price' or 'order.total'.\n\n  sum_equals: sum of `field` values == `equals_field` value (or `equals`)\n  gte / lte:  `field` >= / <= `other_field` value (or `value`)\n  exists_in:  every `field` value is among `in_field` values (or `values`)\n  unique:     no duplicates among `field` values; if `field` names an\n              array itself, no duplicate elements in it"},"maxItems":50},{"type":"null"}],"title":"Rules","default":null,"description":"Optional cross-field rules: sum_equals, gte, lte, exists_in, unique (duplicate detection). Violations are reported as informational flags only."},"bounds":{"anyOf":[{"type":"object","maxProperties":50,"additionalProperties":{"type":"object","title":"Bound","properties":{"max":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Max","default":null},"min":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Min","default":null}},"description":"Optional inclusive min/max for one field. Numbers, or ISO-8601 date /\ndatetime strings (compared as datetimes; naive values are treated as UTC)."}},{"type":"null"}],"title":"Bounds","default":null,"description":"Optional per-field min/max, keyed by dotted path with '[]' array wildcard (e.g. 'items[].price'). Numbers or ISO-8601 dates. Violations are reported as informational flags only."},"task_id":{"type":"string","title":"Task Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id","default":null},"expected_schema":{"type":"object","title":"Expected Schema","additionalProperties":true},"submitted_output":{"title":"Submitted Output"},"strict_content_check":{"type":"boolean","title":"Strict Content Check","default":false,"description":"Opt-in. When true, any string in submitted_output containing control characters (e.g. null bytes) or embedded HTML/script markup makes the result 'fail'. When false (default) this is not checked at all."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T6iUhyRmBWIQ4vzJdnW25","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates any JSON value against a caller-supplied JSON Schema (draft-04 through 2020-12) and returns all violations found, plus optional cross-field consistency checks.","exampleAgentPrompt":"Can you validate this JSON payload against my schema and give me every violation — not just the first one? The data is the order object from our checkout API and the schema enforces draft-2020-12 rules including required fields, type constraints, and a sum_equals rule that the line item prices must add up to the order total.","exampleUseCases":[{"title":"Validating agent tool output","prompt":"The tool-calling agent just returned a JSON object claiming to be a structured itinerary. Can you run it through my JSON Schema — draft-07, with required fields 'destination', 'dates', and 'activities' as an array — and list every field that's missing or has the wrong type?"},{"title":"Enforcing API response contracts","prompt":"Our upstream payments API returned this JSON response. Please validate it against our expected schema (draft-2020-12) and tell me every violation so I know whether it's safe to process — I need all errors, not just the first one."},{"title":"Config file pre-deployment check","prompt":"Before we deploy, can you validate this environment config JSON against our infrastructure schema? It should enforce that 'max_replicas' is always greater than or equal to 'min_replicas', and that every 'region' value exists in our allowed regions list — flag every inconsistency you find."}],"resultDescription":"A list of every schema violation found in the submitted JSON value, including the JSON path, violated constraint, expected vs actual values, and any cross-field rule or bound violations reported as informational flags. Returns an empty violations list if the data is fully valid.","failureModes":["Invalid or unparseable JSON Schema supplied — returns a schema parse error","Unsupported JSON Schema draft version — returns unsupported draft error","Malformed input JSON — returns parse error before validation begins","Too many cross-field rules supplied (over 50) — returns limit exceeded error","Network timeout on render.com cold start — returns 504 or connection error","Payment not received or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need exhaustive validation — all violations, not just the first — against a caller-supplied JSON Schema across any supported draft (04 through 2020-12), especially when you also need cross-field consistency checks (sum_equals, gte, lte, exists_in, unique) in a single call. Prefer it over client-side validators when the agent environment lacks a native JSON Schema library, or when you need a neutral third-party validation result for audit purposes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:34:09.947Z","isFirstParty":false,"canonicalSlug":"json-schema-verifier-2a291a54"}