Autobot::Mcp::ProxyTool
Inherits Autobot::Tools::Tool < Reference < Object
Wraps a single MCP server tool as an autobot Tools::Tool.
The LLM sees proxy tools as native autobot tools. Each tool is named
mcp_{server}_{tool} (sanitized to [a-z0-9_]) to avoid collisions.
to_schema passes the raw MCP inputSchema directly to the LLM,
preserving nested JSON Schema that autobot's ToolSchema cannot represent.
Constants
Constructors
Builds a ProxyTool from an MCP tools/list entry.
Extracts name, description, and inputSchema from the tool JSON,
prefixes the name, and stores the raw schema for to_schema.
Class methods
Sanitize and prefix: mcp_{server}{tool}, only [a-z0-9]
Best-effort conversion of MCP inputSchema to autobot's ToolSchema.
Maps known JSON Schema types to PropertySchema; falls back to
"string" for unrecognized types. Used for basic validation only —
the raw schema is sent to the LLM via to_schema.
Instance methods
Override to pass raw MCP inputSchema directly to the LLM, preserving nested JSON Schema that ToolSchema can't represent.