Skip to main content

define

Function define 

Source
fn define<S, H: ToolHandler<S> + 'static>(
    handler: H,
    name: &'static str,
    description: &'static str,
    annotations: ToolAnnotations,
    scope: McpScope,
) -> Tool<S>