pub struct McpTool {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
A tool definition returned by an MCP server during the tools/list handshake.
Fields§
§name: StringThe tool’s unique name (used as name in tools/call).
description: StringA human-readable description.
input_schema: ValueThe JSON Schema for the tool’s arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpTool
impl RefUnwindSafe for McpTool
impl Send for McpTool
impl Sync for McpTool
impl Unpin for McpTool
impl UnsafeUnpin for McpTool
impl UnwindSafe for McpTool
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