pub struct ToolDescription {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
A tool as described in the tools/list response.
Fields§
§name: StringTool name (e.g. "greet" - will be exposed to the model as
mcp__<server-name>__greet).
description: StringOne-line human-readable description.
input_schema: ValueJSON-Schema describing the tool’s arguments object.
Trait Implementations§
Source§impl Clone for ToolDescription
impl Clone for ToolDescription
Source§impl Debug for ToolDescription
impl Debug for ToolDescription
Auto Trait Implementations§
impl Freeze for ToolDescription
impl RefUnwindSafe for ToolDescription
impl Send for ToolDescription
impl Sync for ToolDescription
impl Unpin for ToolDescription
impl UnsafeUnpin for ToolDescription
impl UnwindSafe for ToolDescription
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