Expand description
JSON Schema generation and validation for the Model Context Protocol (MCP).
Modules§
Functions§
- array_
schema - Create a schema for an array of items
- basic_
schema - Generate a basic JSON Schema for simple types
- enum_
schema - Create a schema for an enum with specific values
- generate_
schema_ for - Generate JSON Schema for a type at runtime
- object_
schema - Create a schema for a struct with properties
- validate_
against_ schema - Enhanced schema validation with comprehensive JSON Schema support
- validate_
tool_ input - Validate that data conforms to expected input schema for a tool
- validate_
tool_ output - Validate that data conforms to expected output schema for a tool