Skip to main content
Glama

gateway_list_profiles

View available routing profiles to narrow the toolset for specific tasks like coding or research, then switch profiles to focus on relevant tools.

Instructions

List all available routing profiles with their descriptions. Use gateway_set_profile to switch to a profile that narrows the visible toolset to the current task (e.g. "coding", "research").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The provided codebase does not contain the actual implementation of the gateway tools, but it does contain the schema definitions in `benchmarks/token_savings.py`. Notably, 'gateway_list_profiles' is not present; the gateway tools defined are 'gateway_list_servers', 'gateway_search_tools', and 'gateway_invoke'.
    GATEWAY_TOOLS = [
        {
            "name": "gateway_list_servers",
            "description": (
                "List all registered MCP backend servers with their names, "
                "descriptions, and tool counts. Use this first to discover "
                "available capabilities."
            ),
            "inputSchema": {
                "type": "object",
                "properties": {},
            },
        },
        {
            "name": "gateway_search_tools",
            "description": (
                "Search for tools across all registered backends by keyword. "
                "Returns matching tool names, descriptions, and which backend "
                "they belong to. Use this to find the right tool before invoking."
            ),
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "description": "Search query to match against tool names and descriptions.",
                    },
                },
                "required": ["query"],
            },
        },
        {
            "name": "gateway_invoke",
            "description": (
                "Invoke a specific tool on a specific backend server. "
                "Pass the server name, tool name, and arguments. "
                "The gateway routes the request and returns the result."
            ),
            "inputSchema": {
                "type": "object",
                "properties": {
                    "server": {
                        "type": "string",
                        "description": "Name of the backend MCP server.",
                    },
                    "tool": {
                        "type": "string",
                        "description": "Name of the tool to invoke.",
                    },
                    "arguments": {
                        "type": "object",
                        "description": "Arguments to pass to the tool.",
                    },
                },
                "required": ["server", "tool"],
            },
        },
    ]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MikkoParkkola/mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server