oa::network::mcp::McpTool
Registered MCP tool definition.
Declaration
pub struct McpTool { pub name: String, pub title: String, pub description: String, pub input_schema_json: String, pub output_schema_json: String, pub read_only: bool, pub destructive: bool, pub idempotent: bool, pub open_world: bool, pub call: Box<dyn Fn(&McpArguments<'_>) -> Result<McpToolResult> + Send + Sync>, }Public Rust declaration.
Associated Functions
Public Data Members
nameStringfieldtitleStringfielddescriptionStringfieldinput_schema_jsonStringfieldoutput_schema_jsonStringfieldread_onlyboolfielddestructiveboolfieldidempotentboolfieldopen_worldboolfieldcallBox<dyn Fn(&McpArguments<'_>) -> Result<McpToolResult> + Send + Sync>field