How do you safely support read and write operations for agents? It takes layers. The platform should do the right thing by default, Security reviews the most sensitive services, and service owners make the final call on what agents may do with their service.
Early on, the GitHub MCP was read-only for code, issues and pull requests. Our first write-capable MCP was the open-source Jira server. GitHub pull request writes and Slack posting followed.
Reads need care too. Prompt injection isn't fully solved, and text an agent reads from one tool can steer what it does with the next. An agent that could read everything its person can read would be an attractive target. So an agent doesn't simply inherit the person's access. It gets the tools it was granted, the person's own access still caps what it can reach when it acts for that person, and the audit record shows what it did. A tool nobody has classified can't be granted.
Even within an MCP, we may want to segment some tools as more sensitive. If a service exposes a get, a create and a delete API, maybe most people can have the get. Maybe the create needs more control, or the delete shouldn't be exposed at all. We needed role-based access control (RBAC) for each tool. We classify each tool as read or write, flag destructive writes, and decide per MCP how sensitive its data is.
For people, MCP access mostly mirrors what they can already do, because the service behind an MCP still applies its own per-user checks.
For agents, service owners grant permissions through a PR-driven system. If someone wants their agent to call tools X, Y, and Z, they create a pull request (PR), and an approver listed for those tools must approve it. Once it merges, the agent can access the new tools.
For example, when one team's on-call agent needed A/B data for a weekly report, its PR added six read-only tools and nothing else. Since the first agent grant in August 2026, we've granted over 60 agents tools beyond their default permissions.
So why not just give every agent its own API keys? An on-call agent might need logs, metrics, source code and tickets. Setting up a separate relationship with each of those services is a burden most teams won't take on, and the next agent would have to do it again. Through the gateway, the agent's owner asks once in a PR, and each service owner approves their own tools. The agent never gets the keys or secrets those services need.