pub struct McpToolInfo {
pub name: String,
pub description: String,
pub provider: String,
pub input_schema: Value,
pub output_schema: Option<Value>,
pub ui: Option<McpUiToolMeta>,
pub visibility: McpToolVisibility,
}Expand description
Information about an MCP tool exposed by a provider.
Fields§
§name: String§description: String§provider: String§input_schema: Value§output_schema: Option<Value>Optional output schema (outputSchema), when the server advertises
the structure of the tool’s result. Carried for discovery fidelity so
the Full detail level returns the complete definition; execution paths
treat it as advisory metadata.
ui: Option<McpUiToolMeta>MCP Apps linkage (_meta.ui.resourceUri), when the server declares a
ui:// UI resource for this tool. Advisory display metadata only.
visibility: McpToolVisibilityTool accessibility between model and app (_meta.ui.visibility).
Model-facing listings hide tools without model visibility.
Trait Implementations§
Source§impl Clone for McpToolInfo
impl Clone for McpToolInfo
Auto Trait Implementations§
impl Forget for McpToolInfo
impl Freeze for McpToolInfo
impl Move for McpToolInfo
impl RefUnwindSafe for McpToolInfo
impl Send for McpToolInfo
impl Sync for McpToolInfo
impl Unpin for McpToolInfo
impl UnsafeUnpin 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