No. 44 · NOV 2026 · 4 Min Read

An Agent's Tools Are Its Permissions

Abstract

AI agent tool permissions live in the tool list, not the system prompt. Scope each tool to one task, one user, and one reversible effect.

A tool definition is a few lines of JSON: a name, a description, a parameter schema. Hand it to a model and you have granted a permission. Everything the agent can do is in that list. Everything it can’t do is everything left out. The system prompt has no say in the matter.

Teams spend weeks on the prompt telling the agent what it should and shouldn’t touch, then wire up a tool called run_sql against a connection that can drop tables. The prompt is a request. The tool is the grant. When they disagree, the tool wins, and it wins on the one run where it matters. I made the general version of this argument in Rules Are Not Controls.

Read the List as an ACL

Take your agent’s tool list and read it the way you would read a role in IAM. Ask what the agent could do if it were confused, manipulated, or wrong for one turn.

Most lists fail that read in the same few ways.

  • Generic verbs. http_request, run_shell, execute_sql. Each is every permission the underlying credential holds, offered under a friendly name.
  • Service credentials. The tool calls the backend as the agent’s service account, which can see every customer, so the agent can see every customer.
  • Write paths bundled with reads. One update_record tool covers the safe field and the dangerous one, because splitting it felt like ceremony.
  • Tools nobody uses. Added for a demo, never removed. A permission with no job is pure risk.

None of these look alarming in code review. They look like convenience. Review the list as a security artifact, and leave the prompt out of it.

Narrow Tools Are Cheaper Than Rules

Make the tool the size of the task. Replace execute_sql with get_order(order_id). Replace send_email(to, subject, body) with reply_to_ticket(ticket_id, body), where the recipient comes from the ticket and the model never types an address.

Every parameter the model fills is a parameter it can fill wrong. Every parameter the tool derives from context is one it can’t. A refund tool that takes order_id and computes the amount from the order can’t be talked into refunding twice the purchase price. A refund tool that takes amount can, and the only thing standing in the way is a sentence in the prompt.

This also makes the agent better at its job. A model choosing between get_order, get_customer, and reply_to_ticket is choosing between three clear things. A model holding execute_sql has to write a correct query against a schema it half understands. The model has to read the manual either way, and a narrow tool is a short manual.

Act as the User, Not the Agent

Scope by task is half. Scope by person is the other. An agent acting for a user should hold that user’s permissions and nothing more. If Alice can’t see Bob’s invoices in the app, Alice’s agent can’t see them through a tool.

That means the tool call carries the user’s identity to the backend, and the backend enforces its own rules as it would for any request. The agent gets no service-account shortcut. In my experience this is the decision that separates agents that survive a security review from the ones that get shelved after it. It is the same principle I argued for user-written code in User Code Acts as the User, and it holds for model-written actions for the same reason: the code running on someone’s behalf should never outrank them.

The practical shape is a credential broker. The agent never holds a long-lived secret. Each tool call gets a short-lived, user-scoped token minted for that call, and the backend can tell the difference between “Alice did this” and “Alice’s agent did this.” The credential broker piece covers the mechanics.

Sort Tools by What They Can Undo

Once tools are narrow and user-scoped, sort them by consequence.

01 Read: fetch an order, search docs RUN FREELY
02 Reversible write: draft a reply, tag a ticket RUN, LOG
03 Irreversible: send money, email a customer, delete GATE

Reads run freely. Reversible writes run and get logged as decisions. Irreversible actions get a gate the model can’t open: a human approval, a hard limit enforced in the tool, or both. The gate lives in the tool’s code, because anything the model can read, it can be argued out of.

Watch for combinations, too. Simon Willison’s “lethal trifecta” names the classic one: an agent with access to private data, exposure to untrusted content, and a way to send data out. Each tool alone is reasonable. Together they are an exfiltration path, and a prompt injection in a support ticket is all it takes to use it. The answer is to remove one leg, usually the outbound one, from any agent that reads text it didn’t write.

The List Is the Design

Write the tool list before the prompt. Review it like an IAM policy. Every tool earns its place with a task it serves, a user it acts for, and a statement of what it can’t undo. When the agent misbehaves, ask which tool let it.