Builds a tool definition whose handler validates raw arguments against the zod schema before running, and converts thrown errors into MCP error results instead of propagating them to the transport.
Builds a tool definition whose handler validates raw arguments against the zod schema before running, and converts thrown errors into MCP error results instead of propagating them to the transport.