Skip to main content
Glama

Agent MCP Gateway

execute_tool

Execute tools on downstream MCP servers through gateway validation and forwarding. Access specific server tools with proper arguments while maintaining permission controls and timeout management.

Instructions

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.

Input Schema

NameRequiredDescriptionDefault
agent_idNoYour agent identifier (leave empty if not provided to you)
serverNoServer name from list_servers
toolNoTool name from get_server_tools
argsNoArguments matching tool's inputSchema
timeout_msNoExecution timeout in milliseconds

Input Schema (JSON Schema)

{ "properties": { "agent_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Your agent identifier (leave empty if not provided to you)" }, "args": { "additionalProperties": true, "default": {}, "description": "Arguments matching tool's inputSchema", "type": "object" }, "server": { "default": "", "description": "Server name from list_servers", "type": "string" }, "timeout_ms": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Execution timeout in milliseconds" }, "tool": { "default": "", "description": "Tool name from get_server_tools", "type": "string" } }, "type": "object" }

Other Tools from Agent MCP Gateway

Related Tools

    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