MCP Servers
A key reaches the MCP servers and APIs granted to it or to its team, and the servers open to every key. When both the key and its team have a grant, the key reaches only the servers and tools in both. A key with no grant from either reaches only the servers open to every key.PUT /v2/agent_gateways/{id}/keys/{key_id}/tool_permissions replaces a key’s grant, and the same path under a team replaces the team’s. Each entry names a server by its id:
tools: [] grants every tool the server exposes, and servers: [] grants none.
tools/list returns the tools of the servers the key reaches, and no others. A changed grant reaches the instance within a minute.
Tools
Within a server, a grant can name some of its tools. A server can also expose only some of its tools to every key, in its owntools.
The gateway refuses a tools/call request for a tool outside these limits, and the request never reaches the server. The agent gets an error result in place of the tool’s result.