pub struct McpToolInfo {
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
pub server_id: String,
pub server_name: String,
}
Expand description
Information about a tool discovered from an MCP server
Fields§
§name: String
Name of the tool as reported by the MCP server
description: Option<String>
Optional human-readable description of what the tool does
input_schema: Value
JSON schema describing the tool’s input parameters
server_id: String
ID of the server this tool comes from
Used to route tool calls to the correct MCP server connection.
server_name: String
Display name of the server for logging and debugging
Trait Implementations§
Source§impl Clone for McpToolInfo
impl Clone for McpToolInfo
Source§fn clone(&self) -> McpToolInfo
fn clone(&self) -> McpToolInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for McpToolInfo
impl Debug for McpToolInfo
Source§impl From<McpToolInfo> for McpToolSchema
impl From<McpToolInfo> for McpToolSchema
Source§fn from(tool_info: McpToolInfo) -> Self
fn from(tool_info: McpToolInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for McpToolInfo
impl RefUnwindSafe for McpToolInfo
impl Send for McpToolInfo
impl Sync for McpToolInfo
impl Unpin for McpToolInfo
impl UnwindSafe for McpToolInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more