{"uid":"cap_pYL3az-93RVvaIEcvlHys","slug":"netintel-dev-schema-validator-4305d3ac","name":"netintel.dev Schema Validator","description":"Validate data against a supplied schema — checks required fields, nested objects, arrays, enums, string formats, numeric ranges, lengths, and additional-property rules deterministically, with optional type coercion and repair, returning precise errors with JSON paths so agents can verify structured data before acting on it.","url":"https://netintel.dev/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","bodyType","body"],"properties":{"body":{"type":"object","required":["data","schema"],"properties":{"data":{"type":["object","array","string"],"description":"The data to validate: an object, an array, or a JSON string (malformed strings are repaired first). Max 64KB."},"coerce":{"type":"boolean","description":"Default false. Coerce values to the declared types where lossless (\"5\" → 5, \"yes\" → true)."},"repair":{"type":"boolean","description":"Default false. When invalid, also return a repaired copy of the data plus is_repaired_valid. Deterministic first (coercion, declared defaults, enum casing, strict extra-key removal)."},"schema":{"type":"object","description":"JSON Schema ({\"type\":\"object\",\"properties\":{...},\"required\":[...]}) or a simplified field→type map ({\"age\":\"number\",\"email\":\"email\",\"tags\":\"string[]\",\"bio\":\"string?\"}). In the map form a field is required unless suffixed with '?'. Formats: email, url, date, date-time, uuid, ipv4, ipv6, hostname."},"allow_llm":{"type":"boolean","description":"Default true. Gates the LLM repair fallback only — validation itself is always deterministic."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"grade":{"type":"string"},"score":{"type":"number"},"valid":{"type":"boolean"},"errors":{"type":"array"},"coerced":{"type":"boolean"},"findings":{"type":"array"},"repaired":{"type":["object","array","null"]},"warnings":{"type":"array"},"error_count":{"type":"number"},"is_repaired_valid":{"type":["boolean","null"]}}}}}}},"responseSchema":{"type":"json","example":{"grade":"A","score":100,"valid":false,"errors":[{"path":"$.email","message":"required field is missing","expected":"required","received":"undefined"},{"path":"$.age","message":"expected number, received string","expected":"number","received":"string"}],"coerced":false,"findings":[{"rule":"data_invalid","detail":"Data does not satisfy the schema (2 errors)","deduction":0}],"repaired":null,"warnings":[],"error_count":2,"is_repaired_valid":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_fSDoEsl38lvfCtGIWnz9m","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 JSON data against a supplied schema, returning precise errors with JSON paths, with optional type coercion and repair of invalid data.","exampleAgentPrompt":"Can you validate this user profile object against my schema — it needs email, age (number), and tags (string array) — and if it's invalid, also return a repaired version with coercion turned on?","exampleUseCases":[{"title":"Pre-save form data validation","prompt":"Before I write this user registration payload to the database, validate it against my schema: required fields are name, email, and age as a number. Coerce types if possible and tell me exactly which fields are wrong with their JSON paths."},{"title":"API response conformance check","prompt":"I just got a response back from an external API — can you validate it against this expected schema with required fields id (uuid), status (enum: active/inactive), and created_at (date-time), and flag any violations?"},{"title":"Repair malformed configuration object","prompt":"This config JSON I received is probably malformed — validate it against my schema for required keys host (hostname), port (number), and debug (boolean), and if it fails, give me a repaired version with coercion enabled so I can see what it should look like."}],"resultDescription":"Returns a JSON object with: valid (boolean), error_count, errors array (each with JSON path and description), grade (letter), score (0-1), coerced (boolean indicating if coercion was applied), repaired (fixed copy of data if repair=true), is_repaired_valid (boolean or null), warnings, and findings.","failureModes":["Data exceeds 64KB limit — returns error","Malformed input schema that cannot be parsed — returns schema parse error","Invalid bodyType for the payload — returns 400-level error","LLM repair fallback disabled (allow_llm=false) and deterministic repair insufficient — repaired copy may still be invalid","Ambiguous simplified field-type map syntax — may produce unexpected validation behavior"],"whenToPreferThis":"Choose this endpoint when you need deterministic, schema-driven validation with precise JSON-path error reporting before acting on structured data. Prefer it over LLM-based checks when you need repeatable, auditable results. The optional coercion and repair features make it especially useful in pipelines where upstream data is loosely typed or partially malformed. It supports both full JSON Schema and a simplified shorthand map, making it accessible for quick field checks without writing verbose schemas.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:49:03.427Z","isFirstParty":false}