Over-privileged model tools: what an AI agent is allowed to do
Agents call tools with real credentials. How to inventory tool permissions, scope them to the user and task, require confirmation for consequential actions, and log every call so a misled agent stays contained.
Diagram
Inventory of an agent’s tools
Step 1 of 4
List
Every tool the agent can call, and the credential behind it.
tool credential scope search_docs svc-docs-read all spaces run_sql svc-analytics read/write, all schemas send_slack bot token any channel
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Service credentials
- What fails
- Tools that run as a shared service account give every user that account’s reach.
- Who is affected
- Every record the service account can touch.
- What you would notice
- An agent whose answers include data the asking user cannot see.
- What you change
- Act on behalf of the user with their own permissions.
Write tools
- What fails
- Tools that send, delete, or pay make injected instructions consequential.
- Who is affected
- Recipients and systems the tools affect.
- What you would notice
- Write actions that execute without a confirmation step.
- What you change
- Require explicit approval with a clear preview of the action.
Audit
- What fails
- Without call logs, nobody can tell what an agent did.
- Who is affected
- Investigators after an incident.
- What you would notice
- No record of tool name, arguments, user, and result.
- What you change
- Log every tool call with the user and conversation id.
A permission review in practice
Write the inventory table for your agent, then mark every row where the tool’s scope exceeds what the requesting user could do directly. Those rows are confused-deputy risks: the agent becomes a way around normal access control.
Tool servers and plugins
Protocols such as the Model Context Protocol make it easy to add tool servers. Review each server like a dependency: who maintains it, what credentials it needs, and whether its tools can be limited.
Check yourself
Recognition and the fix. Nothing here is a procedure.
An agent’s SQL tool runs as a service account with access to all schemas. A user without HR access asks about salaries. What happens?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.
This page stands on its own. The lab and the glossary card are the next reading.