Skip to main content

for_tool

Function for_tool 

Source
pub fn for_tool(name: &str) -> Option<String>
Expand description

The description for name, or None for a tool this module does not own.

The lookup exists so [crate::mcp] can set descriptions on its routes at build time instead of repeating the prose in a #[tool(description = …)] literal. That is what makes this module the only definition rather than an authority with a copy beside it.