pub fn fail(error: ToolError, state: &AppState, database: Option<&str>) -> Call
Ends a tool call with a failure that names its database when it is known.