datarobot_genai.drmcp.core.dynamic_tools.register
register
register_external_tool
async
register_external_tool(config: ExternalToolRegistrationConfig, auth_headers: Callable[[], dict[str, str]] | None = None, **kwargs: Any) -> Tool
Create and register a generic HTTP tool in the MCP server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
ExternalToolRegistrationConfig
|
ExternalToolRegistrationConfig object containing all tool parameters. |
required |
auth_headers
|
Callable[[], dict[str, str]] | None
|
Returns auth headers for the current call. They replace the config's. |
None
|
**kwargs
|
Any
|
Additional keyword arguments to pass to tools registration. |
{}
|
Returns
The registered Tool instance with full MCP integration.