← Go back

How do you audit an AI agent's tool permissions?

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

The short answer

Audit the agent, not just its servers: list every tool the agent can reach across every connected server, classify each by consequence (read public, read private, write, send, delete, pay), compare against the tools its real jobs used in the last quarter, and remove or fence everything the job cannot justify. Server-level audits certify parts; the agent experiences the whole. TrustGate's per-agent least-privilege policy records the result, its scan supplies the capability picture per server, and the gateway log supplies the usage evidence that keeps the audit honest.

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

What is a tool permission audit?

A tool permission audit is a periodic, agent-level review of effective capability: the complete set of tools an agent can invoke across all connected MCP servers, assessed against the agent's actual work. Where a server audit asks ‘is this server acceptable?’, the permission audit asks ‘should this agent hold all of this, simultaneously, today?’ — surfacing accumulated grants, stale experiments, combination risks and scope that made sense for a job the agent no longer does. Its output is a tightened policy and a shorter tool list, not a report.

Effective permission is a union — audit the union

An agent's real authority is the union of every tool on every server it can reach, summed across hosting models, vendors and history. No single server review sees that union, because each review is scoped to its server and its moment. The permission audit is the one process whose scope is the union itself — which is why it keeps finding what server reviews structurally cannot: the read tool from March plus the send tool from June plus the agent's standing instruction to ‘be proactive’ is a capability nobody ever granted on purpose.

Assemble the union mechanically: for each agent, enumerate its servers (from the inventory), and for each server its tools (from the latest scan). Classify as you go. The first assembly is always the worst hour of the quarter and the most valuable, because the union, written down, is usually 30–60% larger than anyone's mental model of ‘what the agent can do’.

Classify by consequence, not by vendor

Sort every tool into consequence classes: reads of public data; reads of private data; writes inside your systems; writes that leave your systems (sends, posts, shares); deletions; money movement; credential or permission administration. The classes, not the tools, are what leadership and auditors reason about, and they expose the audit's headline findings instantly: an agent whose job is summarisation holding three send-class and one delete-class tool does not need a nuanced discussion — it needs a smaller toolbox.

Combinations ride on the classification: flag any agent holding both halves of a toxic pair (private read + external send is the canonical one) and require the explicit justification conversation from the toxic-flows guide. The audit is also where class creep gets caught: last quarter's read-only reporting agent quietly holding a write tool because a workflow ‘temporarily’ needed it in a sprint that has since been forgotten by everyone except the config.

Usage evidence: what the agent actually did

Privilege justified by imagination expands forever; privilege justified by logs can be pruned. Pull the quarter's call evidence — gateway decision logs where the gateway runs, agent-platform traces elsewhere — and mark each tool used or unused. Unused across a full business cycle is the audit's easiest finding: the tool leaves the policy (re-adding it later, if a real job appears, is a five-minute governed act, not a loss). Used-but-unlisted is the urgent finding: privilege in active service that no policy admits to, which means either the policy or the practice is fiction.

Used-and-listed is not automatically vindicated, though: check the shape of use. A tool called 4,000 times for a job designed for weekly use, or called with steadily widening parameters, suggests the workflow drifted even where the grant was legitimate. The permission audit is a behavioural review wearing a configuration costume — let it be one.

Cutting: subtraction order and the exception register

Cut in this order: unused tools first (no workflow can break that does not exist), then out-of-job tools (used, but for work that belongs to a different agent — move the work or split the agent), then over-broad tools that a narrower sibling can replace. What survives is the policy. What resists cutting gets an exception entry: tool, reason, compensating control, expiry date, owner. Exceptions without expiries are how last year's migration becomes next year's incident surface, so the register's most important column is the date column.

Expect the ‘but we might need it’ objection and answer it with the governed re-add: any removed tool can return through the same-day scan-and-approve path when a real job materialises. Agility was never the ability to hold unused privilege indefinitely; it is the ability to grant privilege quickly when justified. A fast grant path is what makes a strict audit survivable inside a real team — protect its speed as fiercely as the audit's strictness.

Where the audit's output lives

The audit writes three artefacts. The policy itself — TrustGate's per-agent least-privilege policy on Pro, extended across stacks on Team — updated to the surviving tool list. The exception register, inside or beside the policy, with its dates. And the inventory rows, whose capability summaries change when tools move. If the audit's conclusions live only in a meeting note, the next quarter re-derives them from the config, which by then includes three new ‘temporary’ grants nobody recorded anywhere else.

Publication matters inside the organisation: agents' effective permissions are a fact colleagues build on (the support lead designing a workflow assumes the agent cannot send refunds; the audit is how that assumption stays true). Post the tightened lists where workflow designers will see them. A permission audit that changes only a config file has done half its job; the other half is keeping the organisation's mental model of its agents accurate.

Cadence and triggers

Quarterly is the standing rhythm for most fleets — aligned with the access review, with which it shares evidence and attendees. Trigger-based audits supplement it: when an agent's job materially changes, when a new server joins its set, after any incident involving the agent, and when its owner changes (a handover without a permission audit is how orphaned privilege is born). Each trigger audit is scoped to the one agent, which keeps it a one-hour job rather than a programme.

Measure the trend, not just the state: total tools per agent, high-consequence classes held, exception count and age. A fleet whose numbers drift down quarter over quarter is visibly maturing; a fleet whose numbers only grow has an audit that observes rather than governs. The numbers also give leadership the one chart that summarises agent risk honestly — capability over time — in place of the usual theatre of scores.

The 5-action checklist

  1. Assemble each agent's effective tool union from the inventory and latest scans — no agent is audited from memory.
  2. Classify every tool by consequence and flag toxic pairs for the explicit justification conversation.
  3. Pull the quarter's call evidence; unused tools leave, used-but-unlisted tools are resolved the same week.
  4. Cut in order (unused, out-of-job, over-broad), and register every survivor-exception with owner and expiry.
  5. Publish the tightened policy, update inventory rows, and repeat quarterly plus on job/server/owner changes.

Worked example: a support agent's union, audited down from 31 to 17

A fictional support organisation's audit assembled their main agent's union for the first time: 31 tools across six servers. Classification showed the shape nobody had chosen: private-read tools (tickets, account records), external-send tools (replies, plus a bulk-mail tool from a one-off campaign), a delete tool on the records server, and a refund tool added for a supervisor pilot that had ended in spring. Usage evidence added the verdicts: the bulk-mail and refund tools had zero legitimate calls in the quarter; the delete tool had been used twice, both times by a workflow that belonged to the back-office agent.

The tightened policy landed at 17 tools: sends scoped to replies on existing tickets, delete and refund moved to the back-office agent behind its own policy, bulk-mail removed entirely, two exceptions registered with 60-day expiries for a records migration. The support lead's reaction is the one auditors hope for: ‘this list is finally the agent I thought I was running’. The agent had not changed jobs in a year. Its permissions had simply never been asked, all at once, what they were for.

Frequently asked questions

How is this different from the pre-connection server audit?

Scope and tense. The server audit is per-server and happens at adoption: is this server acceptable to connect? The permission audit is per-agent and recurring: across everything this agent can reach today, what should it hold? Fleets need both — adoption without recurring permission review accumulates, and permission review without adoption discipline keeps admitting new surface faster than it can be pruned.

What if removing a tool breaks a workflow nobody documented?

That is a discovery, not a failure: the workflow existed, undocumented, running on unlisted privilege. Handle it kindly and quickly — document it, judge the tool on the merits, and either grant it properly through the policy or migrate the workflow. The audit's job is to make the invisible visible; breakage-by-revelation is the audit working, provided the re-grant path is fast.

Do read-only tools need auditing?

Yes — ‘read’ spans everything from public documentation to the entire customer database, and read-plus-send combinations are the classic exfiltration chain. Classify reads by data class, not by the comforting word ‘only’. Read-only tools also carry description risk: they are the tools whose injected text the agent reads most often.

Who should run the permission audit?

The agent's owner, with the call evidence and policy in front of them, reviewed by whoever owns the re-approval queue. It should not be outsourced to a distant security function that cannot judge ‘does the job need this?’ — the audit's core question is operational, and its authority to cut depends on the cutter understanding the work well enough to defend the cuts.

How does this map to Team plans?

Team extends the policy machinery across multiple stacks and five seats, which is the natural shape once several agents hold interlocking permissions — the audit then reviews not only each agent's union but the overlaps between agents (two half-privileged agents whose combination reconstructs a toxic pair at the organisation level). The pricing page states the current plan split.

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.