Skip to main content
Glama

Agent MCP Gateway

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GATEWAY_DEBUGNoEnable debug mode to expose get_gateway_status tooltrue
GATEWAY_RULESNoPath to gateway rules configuration file.mcp-gateway-rules.json
GATEWAY_MCP_CONFIGNoPath to MCP servers configuration file.mcp.json
GATEWAY_DEFAULT_AGENTNoDefault agent identity when agent_id not provideddefault
GATEWAY_INIT_STRATEGYNoInitialization strategy (eager or lazy)eager

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
list_servers

Discover downstream MCP servers available through this gateway. Your access is determined by gateway policy rules. Workflow: 1) Call list_servers to discover servers, 2) Call get_server_tools to see available tools, 3) Call execute_tool to use them.

get_server_tools

Discover tools available on a downstream MCP server accessed through this gateway. Returns only tools you have permission to use (filtered by policy rules). Use the returned tool definitions to call execute_tool.

execute_tool

Execute a tool on a downstream MCP server accessed through this gateway. Gateway validates permissions then forwards your request to the server. Returns the server's response directly.

get_gateway_status

Get gateway status, configuration state, and hot reload diagnostics.

NOTE: Only available when debug mode is enabled.

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/roddutra/agent-mcp-gateway'

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