pub fn log_mcp_error(tool: &str, args: Option<&Map<String, Value>>, error: &str)
Record an MCP tool call that failed before producing a result.