fn tool_result(outcome: &Result<Answer, String>) -> ValueExpand description
A tool’s answer as MCP’s CallToolResult: its text, its data, and whether it failed. A failure is said in the result, not as a protocol error, so the agent can correct itself.