fix(fastmcp): respect is_error tool results
Closed
FE
6mo ago+49+49+01234567890123456789-0-0-0123456789
Summary
- handle FastMCP tool results with
is_error=Trueindirect_call_tool() - map the error result through
tool_error_behaviorso non-retryable tool errors do not silently bypass policy - add focused regression tests for both
model_retryanderrorbehaviors
Closes #5217
Testing
uv run pytest tests/test_fastmcp.py -k "is_error_result or error_behavior"