docs: add server-side tool error handling documentation by felixweinberger · Pull Request #2129 · modelcontextprotocol/python-sdk
Add an 'Error Handling' subsection to the Tools section of docs/server.md covering three approaches: raising ToolError, unhandled exception auto-conversion, and returning CallToolResult(isError=True) directly. Includes a runnable example at examples/snippets/servers/tool_errors.py.
marked this pull request as ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters