pub struct McpTool {
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
pub output_schema: Option<Value>,
pub annotations: Option<McpAnnotations>,
}Expand description
MCP tool metadata used by the transport-neutral MCP adapter.
Fields§
§name: StringOriginal MCP tool name.
description: Option<String>Human-readable description.
input_schema: ValueMCP input schema.
output_schema: Option<Value>Optional MCP output schema.
annotations: Option<McpAnnotations>MCP behavioral annotations.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpTool
impl<'de> Deserialize<'de> for McpTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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