Skip to main content

tool_definitions

Function tool_definitions 

Source
pub fn tool_definitions() -> Vec<ToolDefinition>
Expand description

Get the canonical MCP tool definitions exposed by rust-memex transports.

This is derived from the shared transport contract so stdio, HTTP/SSE, and library consumers all see the same tool metadata.

§Example

let tools = tool_definitions();
for tool in &tools {
    println!("Tool: {} - {}", tool.name, tool.description);
}