3.1 Capability Bloat and Least-Privilege Configuration
What You Need to Know
Section titled “What You Need to Know”A tool is a capability wired into (included in) an agent’s configuration. Least privilege gives an agent only the tools its role needs. Capability bloat is every tool beyond what the role needs. A mitigation limits harm but leaves the tool wired. Where removal is available, choose it over mitigation every time.
This lesson uses one made-up example throughout: an electrician’s office. It runs an agent that reads job bookings and drafts customer replies. The agent also has refund and delete-bookings tools, which that role never needs.
Every Unnecessary Tool Costs Twice
Section titled “Every Unnecessary Tool Costs Twice”A tool that the role never needs is pure risk with zero benefit. It has two costs.
Security. If a tool is wired, the capability exists, whatever the system prompt says. Model error, user manipulation or prompt injection can reach it. Attack surface is what the configuration permits, not what the instructions request. A “never issue refunds” prompt leaves the electrician’s refund tool reachable.
Performance. Every tool definition uses context on every request. Overlapping or vaguely described tools confuse the model when it chooses between them. A bloated toolset is slower and less accurate as well as less safe. The electrician’s agent has two unused definitions in context on every message. Anthropic’s tool-writing guidance says more tools do not always lead to better outcomes. Anthropic’s tool-search documentation says tool selection degrades once the number of available tools exceeds a documented threshold.
A minimal configuration is better for both security and performance. A role that needs many capabilities gets progressive discovery (loading tools only when a task needs them, objective 3.8), not a monolithic catalogue (one large catalogue loaded on every request).
Start From the Role’s Task List
Section titled “Start From the Role’s Task List”Judge a configuration as you judge database grants: from the role’s task list, never from the platform’s capability list. Remove anything that the workflow does not need. An agent that only reads and drafts, like the electrician’s agent, justifies exactly those two capabilities. This is true however useful a refund tool might be to somebody else. Anthropic’s guidance applies the same rule to tool design: build a few thoughtful tools for specific high-impact workflows rather than wrapping every available endpoint.
Removal Beats Mitigation
Section titled “Removal Beats Mitigation”Mitigations are real controls, but they address the wrong problem. If you name the category of each control, you can exclude it quickly:
| Offered control | Category | What it cannot do |
|---|---|---|
| Audit logging | Detective | Finds abuse after the damage; the capability stays wired |
| Confirmation prompt | Compensating | Adds friction to a capability that should not exist |
| System-prompt prohibition | Instruction | Constrains behaviour, not capability; one manipulation from failing |
| Removing the tool | Elimination | Nothing; the risk no longer exists to detect, guard, or prohibit |
For the electrician, a log records a bad refund after the money has gone. A confirmation prompt leaves refunds possible. Removing the refund tool makes refunds impossible.
Consolidate What Survives
Section titled “Consolidate What Survives”Least privilege is not only removing tools. Overlapping or vaguely described tools confuse the model’s choice and waste context, even when each tool is justified. Consolidate related operations into fewer clearly described, task-scoped tools. Namespace them under common prefixes so the model can distinguish them. A few well-named tools work better than many granular near-duplicates. The electrician’s three near-identical booking lookups would become one.
In the exam
Section titled “In the exam”The guide’s own Domain 3 sample is a small version of this objective. A support agent that only reads tickets and drafts replies is also wired with refund and delete tools. The right answer removes them. Most questions on this objective have the same shape: a configuration, four candidate changes, one that reduces risk. The two benefits of a minimal configuration are why the exam makes it the right answer so consistently.
Current tool-search threshold figures are figures from a stated date. The Domain 3 quick reference holds them.
Exam Traps
Section titled “Exam Traps”Practice Scenario
Section titled “Practice Scenario”An internal HR agent can read employee records, update them, generate letters, and export payroll data to CSV. It exists solely to answer questions from employees about their own leave balances. Which change best reduces risk?
- A. Add audit logging to the payroll-export tool so misuse can be investigated
- B. Add a confirmation dialogue before any payroll export completes
- C. Strengthen the system prompt to prohibit updates and exports
- D. Restrict the agent to the read tool, scoped to the records of the requesting employee
Answer & explanation
Correct: D
- A — A detective control: it finds abuse after the fact while leaving a capability the role never needs fully wired.
- B — A compensating control guarding a capability that should not exist; the export tool remains reachable.
- C — An instruction is not an access control. While the tools are wired, the capabilities exist regardless of what the prompt says.
- D — Least privilege applied twice: unnecessary tools are removed entirely, and the remaining tool is scoped to the requester. This eliminates the risk rather than monitoring it.
Sources
Section titled “Sources”- Writing effective tools for agents — Anthropic
- Tool search tool — Anthropic
- Claude Certified Architect Professional Exam Guide (v1.0) — Domain 3 — Anthropic