datarobot_genai.drmcpbase.dynamic_tools.external_tool
external_tool
ExternalToolRegistrationConfig
Bases: BaseModel
Configuration for registering an external HTTP API endpoint as an MCP tool.
This specification defines how to register a generic external HTTP API as a tool that can be called by LLM agents through the MCP (Model Context Protocol) server. The tool acts as a bridge between the LLM and any external HTTP API, automatically handling request construction, retry logic, and response formatting.
Source code in datarobot_genai/drmcpbase/dynamic_tools/external_tool.py
get_outbound_headers
async
Retrieve headers to send to the external tool.
Forwards whitelisted headers from the current FastMCP HTTP request, merged with tool-specific static headers. Spec headers always win on case-insensitive key collisions.