← Go back

How do least-privilege policies work for AI agents?

Published 2026-11-14 · Reviewed 2026-11-14 · By the Ingenious AI team

The short answer

A least-privilege policy for an AI agent states exactly which MCP tools that agent may use — and, by omission, which it may not — so the agent's toolbox matches its job instead of the whole company's inventory. It shrinks toxic combinations, caps what any injected instruction can reach, and makes change approvals meaningful (you review changes to tools the agent actually holds). TrustGate carries a per-agent least-privilege policy on Pro (one agent) and extends it across seats and stacks on Team, alongside the pinned baselines and gateway enforcement that give the policy teeth.

Run the free MCP scan  See pricing  Watch the live demo diff

What is a least-privilege policy (for agents)?

A least-privilege policy is a named, recorded statement of the minimum tool access an agent needs to perform its defined job: the specific servers and tools it may call, with everything else out of scope by default. “Least” is measured against the job, not against zero — a support agent legitimately holds private-read plus reply-send, while the reporting agent on the same servers may hold reads only. The policy is per-agent because privilege is a property of a role, and a shared “everyone gets everything” toolbox makes every agent exactly as dangerous as the most permissive job in the building.

Agents inherit the union unless you say otherwise

Left alone, an agent's privilege is the union of everything connected to it, and unions only grow: a tool added for one experiment remains for every later task, because removing things nobody remembers adding feels riskier than leaving them. Within a year the “weekly report” agent can also delete files, message customers and query the billing system — not by decision, but by accumulation. Accumulation is the default policy of every organisation that has no explicit one.

A written policy reverses the burden of proof. A tool is out unless the job argues it in, and the argument is recorded where the next person can find it. This does not require bureaucracy: for most agents the policy is a short list and a sentence of justification per tool. The value is not the paperwork — it is that the list exists outside the config file, where it can be reviewed against the job rather than merely executed.

Designing a policy from the job backwards

Start from the tasks, never from the toolbox. Write the agent's three to five real jobs in plain sentences (“summarise yesterday's tickets and post the digest internally”), then derive the tools each task touches. The gap between the derived list and the connected list is your first finding — in most first passes it is embarrassingly wide, and every surplus tool is standing attack surface plus standing review burden, because its changes will also demand re-approval attention it never earned.

Then classify what remains by consequence: reads of public data, reads of private data, writes, external sends, deletions, money. A good policy is not only a list but a shape — most agents should hold at most one high-consequence class, and any agent holding two (private read + external send, write + deploy) gets the toxic-combination conversation explicitly, with compensating controls recorded if the job truly needs both.

Per-agent beats per-organisation, every time

A single shared toolbox feels efficient and is the privilege equivalent of a master key: convenient until you count the doors. Per-agent policies let the same MCP servers serve different risk postures — the customer-facing agent gets the reply tool but not the export tool; the back-office agent gets the export tool but runs with no customer channel at all. An injected instruction can only spend the privilege of the agent it lands in, so splitting policies is quite literally splitting blast radius.

TrustGate's plan shape mirrors this: Pro's policy covers one agent properly rather than every agent vaguely, and Team exists for the point where several agents and stacks need coordinated policies — the moment “who may approve changes” also becomes a rota. The policy and the change workflow reinforce each other: fewer tools per agent means smaller, more relevant diffs per reviewer.

Policy as a living control, not a launch-day artifact

Jobs drift just as servers do. A policy written at launch silently mismatches the agent's real work within two quarters — tasks added, tools swapped, a temporary exception fossilised. Build the review into rhythms you already keep: when a baseline change is approved for a tool the agent holds, glance at whether the agent still needs the tool; quarterly, compare the policy against the tools the agent actually called (the gateway decision log and baseline history make this a report, not an interview).

Shrinkage should be celebrated and easy. Removing a tool is the only security improvement that also reduces review workload, vendor surface and cost of change. Teams that announce “we cut the reporting agent from 23 tools to 9” are doing security culture right: the metric that went down is the one attackers cared about.

How policies interact with baselines and the gateway

The three controls answer different questions. The baseline answers “is this the server we approved?”. The gateway answers “may this call execute now?”. The policy answers “should this agent hold this tool at all?”. A perfectly pinned, gateway-enforced server can still be the wrong tool in the wrong agent's hands — definition integrity does not fix over-provisioning, and over-provisioning cannot be patched by monitoring. You need all three answers to be boring before the posture is boring.

Practically: write the policy first (it scopes everything else), pin baselines for the servers inside policies, and gateway the intersections where high-consequence tools meet important agents. When a diff arrives for a tool outside an agent's policy, the correct review outcome is often “irrelevant to us — and a reminder to ask why the server is connected at all”.

Common policy mistakes that look like diligence

Copying the vendor's recommended full suite as the policy is mistake one — the vendor's incentive is activation, not your blast radius. Mistake two is writing policies at the server level (“the CRM server is approved”) when exposure lives at the tool level; servers are bundles, and the bundle always contains one tool you would not have approved alone. Mistake three is the break-glass that never closes: a temporary full-access policy for a migration that outlives the migration by a year. Date every exception, and let expiry be the default.

Mistake four is believing the policy because it is written. A policy that the configuration does not enforce is a wish with a title. Reconcile regularly: the tools the agent can call (its live config) versus the tools the policy names. TrustGate's per-agent policy exists to make that reconciliation a product surface rather than a spreadsheet someone maintains until they change jobs.

The 5-action checklist

  1. Write each agent's real jobs in plain sentences, then derive the tool list from the jobs — never from the current config.
  2. Diff derived vs connected; remove every tool no job can justify, and record why each survivor stays.
  3. Classify held tools by consequence and give any two-high-consequence-class agent an explicit toxic-combination review.
  4. Split policies per agent so customer-facing, back-office and experimental agents hold different tool sets.
  5. Reconcile policy vs live config quarterly using call logs, and put an expiry date on every exception.

Worked example: one research agent, 23 tools down to 9

A fictional insights team, Fieldnote, ran a research agent connected to five servers — 23 tools in total, accumulated over eight months of “might be useful”. Their first policy pass started from the agent's actual jobs: search literature, summarise papers, file summaries to the team wiki. Derived need: 9 tools. The surplus 14 included a full mailbox send tool (from a one-week experiment), a file delete, and a CRM write the agent had never once called — each now removed from its config and noted in the policy.

The quarterly reconciliation since then takes twenty minutes: call logs show the agent used 8 of its 9 tools, and the ninth (a citation formatter) earned its place during reporting season. When a literature server update later proposed a “share findings externally” tool, the review was one line — outside policy, not approved for this agent — instead of a debate. Least privilege did not just shrink risk; it made every future approval cheaper, which is why the policy survived contact with a busy team.

Frequently asked questions

Is least privilege just removing tools?

Removal is the strongest move, but the policy also covers scoping (this tool, only these projects), separation (splitting a workflow across two agents), and recorded exceptions with expiries. The principle is that every held tool has a current, job-based justification — removal is simply the most common outcome of asking for one.

How do I know which tools an agent actually uses?

Call evidence beats recollection: gateway decision logs, baseline history and your agent platform's own traces show real usage over a quarter. Tools with zero calls across a full business cycle are removal candidates; tools called constantly but absent from the policy are the more urgent finding — undocumented privilege in active use.

Does a policy slow down experimentation?

It makes experimentation explicit, which is different. A sandbox agent with a deliberately broad policy and no production data is a legitimate pattern — the policy records that this agent is the wild one, keeps it away from the vault, and gives its experiments an expiry. What slows teams down is the incident and the audit, not the list.

What is the difference between Pro's policy and Team's?

Pro carries a per-agent least-privilege policy for one agent, alongside baselines, re-scans, re-approval and the gateway. Team extends policies across multiple agent stacks and five seats, for organisations where several agents and reviewers share the discipline. The pricing page states the current split.

Should policies be public inside the company?

Yes — a policy nobody can read cannot be challenged, and challenge is how over-privilege gets caught early. Publish the list, the justifications and the exceptions register internally. The sensitive artifact is credentials, not the catalogue of which agent may call which tool.

Keep exploring

Start with the free TrustGate scan of your own MCP setup, compare Free vs Pro vs Team, try the live rug-pull demo and the MCP change impact simulator, or browse the full guides index.