pub fn tool_definition(tool: &dyn ToolDyn) -> ToolDefinitionExpand description
Generate a provider-facing ToolDefinition from a registered tool’s
flat metadata.
The tool name is always taken from ToolDyn::name, making that registered
name the single source of truth for provider advertisement and dispatch.