pub struct ToolAnnotations {
pub read_only_hint: Option<bool>,
pub idempotent_hint: Option<bool>,
pub destructive_hint: Option<bool>,
pub open_world_hint: Option<bool>,
}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
Tool annotations (behavioral hints).
Fieldsยง
ยงread_only_hint: Option<bool>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.
idempotent_hint: Option<bool>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.
destructive_hint: Option<bool>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.
open_world_hint: Option<bool>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 ToolAnnotations
impl Clone for ToolAnnotations
Sourceยงfn clone(&self) -> ToolAnnotations
fn clone(&self) -> ToolAnnotations
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more