Cross-LLM tool & structured output schema linter
Paste JSON Schema, MCP tool JSON, Zod, or Pydantic v2. Inspect provider constraints and auto-transpile for OpenAI, Claude, Gemini, and MCP entirely in your browser.
- Error $ OPENAI_ADDITIONAL_PROPERTIES
OpenAI strict: true requires additionalProperties: false on every object.
Auto-fix: Set additionalProperties: false.
- Warn $.subject OPENAI_STRIP_MINLENGTH
Keyword "minLength" is unsupported in OpenAI strict mode.
Auto-fix: Removed "minLength" and recorded (minLength: 5) in description.
- Warn $.subject OPENAI_STRIP_MAXLENGTH
Keyword "maxLength" is unsupported in OpenAI strict mode.
Auto-fix: Removed "maxLength" and recorded (maxLength: 120) in description.
- Warn $.tags OPENAI_STRIP_UNIQUEITEMS
Keyword "uniqueItems" is unsupported in OpenAI strict mode.
Auto-fix: Removed "uniqueItems" and recorded (uniqueItems: true) in description.
- Error $ OPENAI_ALL_REQUIRED
OpenAI strict: true requires all properties in "required". Missing: priority, tags, notes.
Auto-fix: Added priority, tags, notes to required and converted them to nullable.
- Error $.$defs.CustomerContact OPENAI_ADDITIONAL_PROPERTIES
OpenAI strict: true requires additionalProperties: false on every object.
Auto-fix: Set additionalProperties: false.
- Warn $.$defs.CustomerContact.locale OPENAI_STRIP_MINLENGTH
Keyword "minLength" is unsupported in OpenAI strict mode.
Auto-fix: Removed "minLength" and recorded (minLength: 2) in description.
- Warn $.$defs.CustomerContact.locale OPENAI_STRIP_MAXLENGTH
Keyword "maxLength" is unsupported in OpenAI strict mode.
Auto-fix: Removed "maxLength" and recorded (maxLength: 5) in description.
- Error $.$defs.CustomerContact OPENAI_ALL_REQUIRED
OpenAI strict: true requires all properties in "required". Missing: locale.
Auto-fix: Added locale to required and converted them to nullable.
{
"type": "json_schema",
"json_schema": {
"name": "create_support_ticket",
"description": "File a customer support ticket with optional billing context.",
"strict": true,
"schema": {
"title": "CreateSupportTicket",
"description": "File a customer support ticket with optional billing context.",
"type": "object",
"$defs": {
"CustomerContact": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email"
},
"locale": {
"type": [
"string",
"null"
],
"description": "(minLength: 2) (maxLength: 5)"
}
},
"required": [
"email",
"locale"
],
"additionalProperties": false
}
},
"properties": {
"subject": {
"type": "string",
"description": "(minLength: 5) (maxLength: 120)"
},
"priority": {
"type": [
"string",
"null"
],
"enum": [
"low",
"normal",
"urgent",
""
]
},
"contact": {
"$ref": "#/$defs/CustomerContact"
},
"tags": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "(uniqueItems: true)"
},
"notes": {
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"subject",
"priority",
"contact",
"tags",
"notes"
],
"additionalProperties": false
}
}
} Provider compatibility matrix
Each LLM API enforces a different subset of JSON Schema Draft 2020-12. SchemaGate surfaces breaking rules before runtime HTTP 400 errors hit production.
| Rule | OpenAI Strict | Claude Strict | Gemini responseSchema | MCP Safe |
|---|---|---|---|---|
Root type: "object" | Required (no root anyOf) | Required | Recommended | Required with properties: |
additionalProperties: false | Required on every object | Required on every object | Rejected (strip keyword) | Recommended on objects |
| Optional properties | Must be in required + nullable | Allowed | Allowed | Allowed |
$defs / $ref | Supported (no sibling keys) | Supported | Rejected in legacy (inline acyclic; cycles blocked) | Supported |
| Nullable syntax | type: ["string", "null"] or anyOf | type array or anyOf | nullable: true (no type arrays) | anyOf (avoids Gemini/Azure bridge failures) |
| String / numeric constraints | Strips minLength, maxLength, uniqueItems | Relocates bounds to description | Strips unsupported format & empty "" enum | Preserved as 2020-12 |
OpenAI strict: true fixer
Enforce additionalProperties: false, all-required nullable fields, and oneOf to anyOf conversion.
Gemini 400 INVALID_ARGUMENT fixer
Inline non-cyclic $ref definitions, detect recursive cycles, and convert nullable type arrays.
Pydantic v2 & Zod to MCP
Convert Python BaseModel or TypeScript Zod schemas into cross-client MCP inputSchema and Claude tools.