pub struct ToolSummary {
pub tool_id: String,
pub description: String,
}Expand description
A lightweight, schema-free description of a single MCP tool.
Returned by ToolIndex::search so that an external client can discover
what tools exist without receiving every tool’s full JSON input schema.
Once the client has identified the specific tool it needs, it calls
get_tool_schema with the tool_id to retrieve
the full schema lazily.
§Naming convention
tool_id uses the double-underscore qualified format
"<server_name>__<tool_name>" so that the ID is both human-readable and
usable as the tool_id argument to get_tool_schema and invoke_tool
without any further look-up.
Fields§
§tool_id: StringQualified tool identifier: "<server_name>__<tool_name>".
Pass this string directly to get_tool_schema or invoke_tool.
description: StringOne-line human-readable description, or an empty string if the upstream MCP server did not provide one.
Trait Implementations§
Source§impl Clone for ToolSummary
impl Clone for ToolSummary
Source§fn clone(&self) -> ToolSummary
fn clone(&self) -> ToolSummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more