Skip to content
Get started

Fetch Mcp Tools

v1.policies.fetch_mcp_tools(PolicyFetchMcpToolsParams**kwargs) -> PolicyFetchMcpToolsResponse
POST/api/v1/policies/fetch_mcp_tools

Fetch available tools from an MCP server using sequential requests.

Makes three requests in sequence:

  1. initialize - establish session and negotiate protocol
  2. notifications/initialized - signal ready for operations
  3. tools/list - get the actual tools list
ParametersExpand Collapse
mcp_url: str

The MCP server URL to fetch tools from

use_cache: Optional[bool]
ReturnsExpand Collapse
Dict[str, object]
Fetch Mcp Tools
from overmind_lab import OvermindLab

client = OvermindLab()
response = client.v1.policies.fetch_mcp_tools(
    mcp_url="mcp_url",
)
print(response)
{
  "foo": "bar"
}
Returns Examples
{
  "foo": "bar"
}