Catalog / tool-answer-check
Tool answer check
Checks whether a tool's JSON answer matches the JSON Schema it promised, and flags answer text that parsers read differently.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Checks a tool's JSON answer against the JSON Schema it promised, as ajv does (Ajv2020 or Ajv draft-07, allErrors) in the dialect $schema names (2020-12 or draft-07; else the dialect parameter, default 2020-12). Errors have instance path, schema path, keyword, ajv's message and params (property names and patterns are in params, not in the message); errors page by offset. Covers $ref, $defs/definitions, $anchor, $id (RFC 3986), unevaluated*, dependentSchemas, if/then/else, contains with min/maxContains. Not decided, listed in unchecked (valid:null, never a false valid:true): remote refs, $dynamicRef whose dynamic scope can change the target, patterns with lookaround, back references, \p{}, 10,000+ NFA states (20,000 per call; {1,999} counts expanded) or past the first 300 distinct patterns of a call, numbers that change when parsed. format and content* are annotations. Raw text: UTF-8 size, depth, duplicate keys (the last value counts, as in JSON.parse), numbers that change when parsed, integers beyond 2^53; a BOM or any syntax error is invalid_json. verdict pass needs valid, complete, no raw finding and no ignored other-dialect assertion; ignored unknown keywords (ignored_keywords) do not block pass, as in ajv strict:false. Differs from ajv on purpose: exact-decimal multipleOf (19.99 is a multiple of 0.01); contains and nested annotations count for unevaluated* as 2020-12 says; draft-07 ignores keywords beside $ref; dependencies is ignored under 2020-12 (verdict review). Limits: answer 50,000 characters, schema 20,000; one call decides up to about 5,000 small objects or 13,000 numbers (500 six-field records fill the size cap), about 3,000 objects when patterns use all 20,000 states, only dozens with hundreds of patterns (each key meets every patternProperties pattern); beyond that complete:false (work_budget_exceeded).
- Example input
{"answer":"{\"id\":0,\"tags\":[\"a\",\"a\"],\"extra\":true}","schema":"{\"type\":\"object\",\"required\":[\"id\",\"email\"],\"properties\":{\"id\":{\"type\":\"integer\",\"minimum\":1},\"email\":{\"type\":\"string\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"uniqueItems\":true}},\"additionalProperties\":false}"}- Answer
{"ok":true,"result":{"verdict":"fail","valid":false,"complete":true,"reason":"schema_violation","dialect":"2020-12","error_count":4,"errors_offset":0,"errors":[{"instance_path":"","schema_path":"#/required","keyword":"required","message":"must have required property (params.missingProperty)","params":{"missingProperty":"email"}},{"instance_path":"/id","schema_path":"#/properties/id/minimum","keyword":"minimum","message":"must be >= 1"},{"instance_path":"/tags","schema_path":"#/properties/tags/uniqueItems","keyword":"uniqueItems","message":"must NOT have duplicate items (items ## 0 and 1 are identical)"},{"instance_path":"","schema_path":"#/additionalProperties","keyword":"additionalProperties","message":"must NOT have additional properties","params":{"additionalProperty":"extra"}}],"errors_truncated":false,"next_offset":null,"unchecked_count":0,"unchecked":[],"unchecked_truncated":false,"ignored_keyword_count":0,"ignored_keywords":[],"answer":{"bytes":38,"chars":38,"max_depth":2,"duplicate_key_count":0,"duplicate_keys":[],"duplicate_keys_truncated":false,"lossy_number_count":0,"lossy_numbers":[],"lossy_numbers_truncated":false,"unsafe_integer_count":0,"unsafe_integers":[],"unsafe_integers_truncated":false}},"warnings":[]}- Try it free
- /try/tool-answer-check
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/tool-answer-check?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/tool-answer-check?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/tool-answer-check?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/tool-answer-check/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.