docs(python): Improve error documentation with complete hierarchy
Summary
Improves Python SDK error documentation with complete ToolExecutionError hierarchy.
Changes
- errors/: Add complete error hierarchy (ToolkitError → ToolExecutionError), retry-aware errors section
- overview/: Additional tool registration examples
- transports/: Clarify HTTP endpoints table
- types/: Add error adapter documentation
Why
Error docs were incomplete - missing the full hierarchy and retry-aware errors that tool authors need.
[!NOTE] Enhances Python reference docs with full tool error hierarchy and examples, adds error adapters section, expands tool registration examples (auth/secrets/lifecycle), and clarifies HTTP transport endpoints.
- Errors (
app/en/references/mcp/python/errors/page.mdx)
- Add
arcade_core.errorstool execution errors with retry semantics:RetryableToolError,FatalToolError,ContextRequiredToolError,UpstreamError,UpstreamRateLimitError(with code examples).- Document complete error hierarchy diagram covering MCP and tool errors.
- Update examples to use retry-aware tool errors; add info callout linking to error adapters.
- Overview (
app/en/references/mcp/python/overview/page.mdx)
- Add examples for tool registration with OAuth (
requires_auth), secrets (requires_secrets), and lifecycle hooks (@app.on_event).- Transports (
app/en/references/mcp/python/transports/page.mdx)
- Replace endpoint bullets with a detailed table, including
GET/POST/DELETE /mcp; add callout about response types andAcceptheader.- Types (
app/en/references/mcp/python/types/page.mdx)
- Add frontmatter and a new Error Adapters section: protocol, built-in adapters, and usage example with
@app.tool(adapters=[...]).Written by Cursor Bugbot for commit e3a669ea11d8ad8eec117bb5dfec13ef7b133d1b. This will update automatically on new commits. Configure here.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Review | Updated (UTC) |
|---|---|---|---|
| docs | Preview, Comment | Dec 21, 2025 2:35am |
@EricGustin is this page still accurate?