pub struct ToolDefinition {
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
pub annotations: Option<ToolAnnotations>,
}MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
Expand description
MCP tool definition returned in tools/list.
Fields§
§name: StringMCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
description: Option<String>MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
input_schema: ValueMCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
annotations: Option<ToolAnnotations>MCP wire types now come from rmcp::model, the reference SDK, which tracks protocol revisions for us — these hand-rolled types are pinned to MCP 2025-11-25 and do not model 2026-07-28. Scheduled for removal in 0.15.0.
Trait Implementations§
Source§impl Clone for ToolDefinition
impl Clone for ToolDefinition
Source§fn clone(&self) -> ToolDefinition
fn clone(&self) -> ToolDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more