API & MCP

Everything a person can do on Structured Output Validator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Structured Output Validator

Paste a JSON Schema (or an OpenAI/Anthropic/MCP wrapper around one) and the model's output. The tool extracts the JSON from markdown code fences or surrounding prose, reports syntax errors with exact line and column, validates against a draft 2020-12 subset (types, required, additionalProperties, enum, const, ranges, lengths, patterns, items, anyOf/oneOf/allOf, local $ref and more) with human explanations and hints for typical LLM mistakes, and suggests a repaired JSON only for trivial issues such as code fences or trailing commas.

Inputs of Structured Output Validator
FieldTypeDefaultDescription
schema (required)textarea—JSON Schema. Plain schema or a response_format / function-tool wrapper.
output (required)textarea—AI output. Raw model output; code fences and prose around the JSON are handled.
maxErrorsinteger50Maximum errors listed

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "structured-output-validator": { "type": "http", "url": "https://structuredoutputvalidator.usefulweb.site/mcp" }
  }
}