Set agent tool access
set_agent_tool_accessReplace which of a gateway server's tools an agent may call, and with which scopes. Access decides what the agent sees and can call at all; the approval pipelines still decide every call it makes. The agent's next tool listing reflects the change, and calls check live access before they run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_slug": "<agent_slug>",
"server_slug": "<server_slug>",
"mode": "<mode>",
"revision": "<revision>"
},
"name": "set_agent_tool_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | none (no tools), selected (exactly the tools listed) or all (every current and future tool). | |
| tools | No | Exact downstream tool names for mode selected, as list_gateway_server_tools reports them (without the slug prefix). No wildcards. | |
| scopes | No | The scopes the agent may call with; any granted scope works with any granted tool. Empty exactly when mode is none. | |
| revision | Yes | The grant's current revision from list_agent_tool_access, or 0 for an agent and server never configured. A stale revision is refused. | |
| agent_slug | Yes | The agent's slug, from list_agents. | |
| server_slug | Yes | The gateway server's slug, from list_gateway_servers. |