Skip to content

Glossary: Agent Tools and MCP

ToolError

An exception from the `mcp` package. Raising it sends your message to the model as a tool error, while any other exception reaches the client only as a generic message.

Where the book teaches it

Related terms

Tool errorErrors as data