Tool Permissions and Blast Radius: Designing an Agent You Can Survive

An agent’s capability is exactly the set of tools it can call. That is also its risk. When you connect a database writer, an email sender, a file deleter, or a payment API, you are granting those powers to something that decides probabilistically what to do next. It will usually do the right thing. The design work is about the cases where it does not, and about how much damage the wrong thing can cause before anyone notices.

The short version: think in terms of blast radius, meaning the worst outcome a single mistaken tool call can produce. Then decide, per tool, whether that worst outcome is survivable, reversible, or unacceptable. The tool list follows from that classification, not from what would be convenient to build.

Classify tools by reversibility, not by importance

The useful axis is not read versus write. It is reversible versus irreversible. Reading a customer record is reversible in the sense that nothing changed. Writing a draft document is reversible. Sending an email to a customer is not. Issuing a refund is not. Deleting a row from a production table is not, unless you have verified backups and know how to use them under pressure.

Agents should get broad access to the reversible tier and narrow, gated access to the irreversible tier. In most well-designed systems the agent can gather anything it needs freely, draft anything it wants, and can only cross into irreversible territory through a specific path with a specific check. That single distinction removes most of the anxiety around autonomy without reducing capability much.

Prefer narrow tools over general ones

A general “run SQL” tool is a blank cheque. A “get order status by order id” tool is a bounded request with one argument and a predictable response. The narrow tool is easier for the model to use correctly, easier to log, easier to rate limit, and impossible to abuse for a mass delete. Every hour spent replacing a general tool with three narrow ones is usually an hour spent removing a class of incident.

Narrow tools also improve accuracy. Models fill in arguments more reliably when a schema has one required field than when it has an open query string. The failures you avoid are not only dramatic ones; you also stop the quiet class of mistake where the agent runs a syntactically valid query that returns the wrong rows.

Arguments are a security boundary

Validate every argument before execution, independently of what the model intended. An order id should match a pattern and exist. A recipient address should be on an approved domain list. A file path should resolve inside an allowed directory and not contain traversal sequences. A monetary amount should be within a per-call ceiling.

This validation is not distrust of the model. It is the same check you would apply to a junior employee using a form, and it exists because the input might be wrong for reasons that have nothing to do with intent: a stale id pulled from an old document, a path assembled from an ambiguous instruction, a number copied from a table with the wrong column.

Two-person rule for the irreversible tier

For actions that cannot be undone, require a second decision. That can be a human approval step, a second agent with a different prompt whose only job is to check the action against policy, or a hard rule that the action is only permitted inside a batch that a human scheduled in advance. The mechanism matters less than the existence of a gate.

Approval fatigue is the real risk here. If every action requires approval, approvers click yes without reading, and the gate becomes theatre. Keep the gate narrow, keep the approval request short, and show the specific action with its arguments rather than a summary the approver has to trust.

Containment: limits, quotas, and kill switches

Assume something will go wrong and make the blast radius small in advance. Per-run quotas on how many records can be modified, per-hour quotas on outbound messages, and a global switch that stops all tool execution are cheap to build and decisive when needed. A kill switch that has never been tested is a rumour; test it on a schedule and record the result.

Containment also means isolation of credentials. The agent should act through a service account with the minimum scope required, not through an administrator token borrowed from a developer. When something does go wrong, the account can be revoked without taking down the rest of the system, and the audit trail points at one identity.

A worked example: the refund tool

A support agent is given a refund tool with one argument, the order id, and a hard ceiling of the order value. That design already removes the most dangerous failure, which is the agent refunding an amount assembled from a misread conversation. The tool checks that the order exists, that the amount requested equals the order total, and that the order has not already been refunded.

Now consider the same requirement implemented as a general payments tool with amount and currency fields. The agent can now issue a wrong amount, in a wrong currency, to the right order. Nothing about the model changed; the surface did. Narrowing the tool did not reduce capability, because in practice the agent only ever needed to refund an order in full.

Every tool is a permission. Narrow credentials keep a mistaken call survivable.
Every tool is a permission. Narrow credentials keep a mistaken call survivable.

What to check before you commit

  • List every tool and mark it reversible or irreversible.
  • Replace any general-purpose tool with two or three narrow ones.
  • Validate arguments server-side, including existence and range checks.
  • Gate irreversible actions behind a second decision or a pre-scheduled batch.
  • Set per-run and per-hour quotas, and test the kill switch.
  • Run the agent under a dedicated least-privilege identity with full audit logging.

None of this makes an agent less useful. It makes the useful part shippable. The teams that run agents unattended are not the ones that trust the model most; they are the ones that arranged for the model’s mistakes to be small, visible, and undoable.

Leave a Comment