set_agent_tool_access
Replace 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.
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. |