A tool with more permission than its task needs is a risk waiting for a wrong call: a search tool that can also delete, or a read tool with write access to the whole database. Least privilege is the fix: each tool gets only the permissions its task requires, and nothing more. MCP’s security guidance says the same thing at the protocol level: servers must validate inputs, implement proper access controls, and rate limit tool invocations, while clients should prompt for confirmation on sensitive operations. Review the permissions on a schedule, not just at setup, because tasks change and permissions creep.
What you need
- A list of the agent’s tools, with the permissions each one holds
- The permissions each task actually needs, written down per tool
- A review schedule, such as once a month, with a named reviewer
Step 1: List what each tool can do today
Write down the permissions each tool holds: which folders, which tables, which actions. A permission nobody wrote down is a permission nobody reviewed.
Step 2: Cut every permission the task does not need
For each tool, compare what it holds with what its task needs, and remove the rest: a read tool loses its write access, a search tool loses its delete. Keep the change record with the tool.
Step 3: Re-test the task and schedule the next review
Run the task after the cuts and confirm it still completes, then write the next review date down. A review with no next date is a review that happens once.
Worked example: synthetic permission review check
The table below is a synthetic example. It shows the expected result of the permission review; no permission was changed live.
| Tool | Permissions before | Permissions after |
|---|---|---|
| search_docs | Read and delete | Read only |
| lookup_order | Read all tables | Read orders only |
| send_message | Send to anyone | Send to team only |
| All tools least privilege | Yes | Pass |
Expected result (UNTESTED). every tool loses the permissions its task does not need, the tasks still complete, and the next review is scheduled. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Cutting too much breaks the task, so re-test after every cut.
- Permissions creep back as tasks change, so the review must repeat on a schedule.
- A tool’s permissions are only as good as the account it runs under; check both.
- Least privilege limits damage, it does not prevent a wrong call within the allowed scope.
