Converts a Zod object schema to a flat shape for MCP tools
The Zod schema to convert
A flattened schema shape compatible with MCP tools
Error if the schema is not an object type
Converts a Zod object schema to a flat shape for MCP tools