{"uid":"cap_5kIks0-icQ2Ut31luxdMp","slug":"forest-agent-tools-json-schema-validator-c925ccfe","name":"Forest Agent Tools JSON Schema Validator","description":"Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/json/validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"description":"Public value value used to scope this lookup."},"schema":{"type":"object","description":"Public schema value used to scope this lookup."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"valid":false,"truncated":false,"violations":[],"input_bytes":0,"schema_nodes":1,"schema_scope":"forest_bounded_json_schema_subset_v1","violation_count":0,"value_nodes_visited":0},"meta":{"cache":"miss","provider":"local-json","checked_at":"2026-01-01T00:00:00.000Z","duration_ms":0},"version":"1","capability":"json.validate"}},"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_N97qsMSpusvPcAoFzrKMW","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 caller-supplied JSON against the Forest bounded JSON Schema subset v1 and returns deterministic, machine-readable violation reports with stable paths — no network I/O, inference, or mutation.","exampleAgentPrompt":"Before I trust this JSON output from the pipeline, validate it against this schema: {\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"age\":{\"type\":\"integer\"}},\"required\":[\"name\",\"age\"]} — and tell me exactly which fields violate it, if any.","exampleUseCases":[{"title":"Validate LLM structured output before use","prompt":"The model just returned this JSON blob and I need to make sure it actually matches my expected schema before I send it downstream — can you run it through Forest's JSON validator and show me any violation paths?"},{"title":"Guard agent pipeline against malformed payloads","prompt":"My agent is about to forward a structured payload to the next tool, but I want to verify it conforms to the contract schema first — validate this JSON value against the schema and tell me if anything is off."},{"title":"Audit third-party API response for contract compliance","prompt":"I got this response back from an external API and I want to confirm it matches the schema I defined — use the Forest JSON validator to check it and list every property that violates the schema."}],"resultDescription":"A deterministic, machine-readable report of schema violations found in the submitted JSON value, including stable dot-notation or JSON Pointer paths to each offending field and a description of each violation. Returns an empty violations list if the value is fully valid. No mutations are made to the input.","failureModes":["Malformed JSON in the value or schema field returns a parse error","Schema uses features outside the Forest bounded subset (e.g. remote $ref, regex patterns) — unsupported keywords are ignored or rejected","Missing required fields (value or schema) returns a 400-level error","Payment not included or invalid causes HTTP 402 response","Extremely deeply nested schemas may hit processing limits"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, side-effect-free JSON schema validation with stable violation paths — especially in agent pipelines where you must verify structured LLM output or third-party payloads before trusting or forwarding them. Prefer this over general-purpose validators when you need machine-readable violation paths and guaranteed no network I/O, remote $ref resolution, or regex evaluation, making it safe to call in sandboxed or latency-sensitive agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T00:40:26.463Z","isFirstParty":false,"canonicalSlug":"forest-agent-tools-json-schema-validator-c925ccfe"}