pub struct ToolHints {
pub read_only: Option<bool>,
pub destructive: Option<bool>,
pub open_world: Option<bool>,
}Expand description
The MCP tool annotations that say what a tool does (MCP 2025-03-26
ToolAnnotations), as the tool’s accepted pin holds them; None for a
hint the definition does not give.
Fields§
§read_only: Option<bool>readOnlyHint: the tool does not change its environment.
destructive: Option<bool>destructiveHint: the tool may delete or overwrite.
open_world: Option<bool>openWorldHint: the tool reaches entities outside the server.
Trait Implementations§
impl Copy for ToolHints
impl Eq for ToolHints
impl StructuralPartialEq for ToolHints
Auto Trait Implementations§
impl Forget for ToolHints
impl Freeze for ToolHints
impl Move for ToolHints
impl RefUnwindSafe for ToolHints
impl Send for ToolHints
impl Sync for ToolHints
impl Unpin for ToolHints
impl UnsafeUnpin for ToolHints
impl UnwindSafe for ToolHints
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more