Skip to main content

is_tool_error

Function is_tool_error 

Source
pub fn is_tool_error(result: &Value) -> bool
Expand description

Whether an MCP tools/call result signals a tool-level failure via the spec’s isError flag. This is distinct from a JSON-RPC protocol error (handled in connection.rs): a tool can return a successful RPC response whose payload still represents a failed tool invocation.