pub fn closure_tool<F>( name: String, description: Option<String>, input_schema: Value, handler: F, ) -> Toolwhere F: Fn(&HashMap<String, Value>) -> McpResult<Vec<ContentBlock>> + Send + Sync + 'static,
Extension to create tools with closures