{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "MCP Structured Document Schema (JSON Schema Valid)", "description": "Strict meta-schema for structured tools using zod compatible fields.", "type": "object", "required": ["metadata", "fields"], "properties": { "metadata": { "type": "object", "required": [ "schemaName", "description", "identifierField", "pathTemplate", "pathComponents" ], "properties": { "schemaName": { "type": "string" }, "description": { "type": "string" }, "identifierField": { "type": "string" }, "pathTemplate": { "type": "string" }, "pathComponents": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false }, "fields": { "type": "object", "patternProperties": { "^[a-zA-Z_][a-zA-Z0-9_]*$": { "type": "object", "required": ["type"], "properties": { "type": { "type": "string", "enum": [ "string", "number", "boolean", "date", "array", "object", "literal", "unknown", "any" ] }, "description": { "type": "string" }, "default": {}, "minimum": { "type": "number" }, "maximum": { "type": "number" }, "enum": { "type": "array", "items": {} }, "items": { "type": "object" }, "properties": { "type": "object" }, "required": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": true } }, "additionalProperties": false } }, "additionalProperties": false }