CertSafari
    Anthropic Claude Certified Architect – Professional (CCAR-P)· Lessons

    Domain 3 · Lesson 12/38

    Capability bloat in agent tool configurations

    Evaluate tool/agent configuration for capability bloat

    19 min read
    2.38% of exam
    10 sources
    Published 19 Oct 2026
    Docs as of 14 Oct 2026

    What you will be able to do

    • Explain what an oversized tool set costs an agent in context, attention and tool-selection accuracy
    • Read an agent configuration and find overlapping, unused or vaguely described tools and MCP servers the agent doesn't need
    • Merge overlapping tools into higher-level ones and namespace the remaining tools by service and resource
    • Limit each agent and subagent to the tools its role needs using tools, disallowedTools, mcpServers and permission modes
    • Pick between consolidation, scoping, tool search, prompt caching and context editing based on where the context pressure comes from

    Key concept

    Capability bloat — Capability bloat is when an agent is given more tools than its job needs: tools that overlap, sit unused, have vague descriptions, or come in from MCP servers it never calls. Every one of those definitions takes up context and is one more option Claude has to rule out, so the agent becomes less accurate at choosing a tool, not more capable.

    1.What too many tools cost an agent

    Every tool definition you attach is paid for in context before the agent reads the user's request. Claude sees each tool's name, description and input schema on every turn. Fifty tools can use 10–20K tokens. A typical multi-server setup that connects GitHub, Slack, Sentry, Grafana and Splunk can use about 55k tokens on definitions before Claude has done any work. Those tokens come out of the same window the task needs for files, tool results and reasoning.

    The cost goes beyond space. Context behaves like an attention budget, and every added token draws it down. As the token count rises, the model gets worse at recalling and reasoning over what's in the window. A tool catalogue the agent mostly ignores still takes attention on every request. In a long-running agent, those definitions compete with the growing pile of tool_result blocks, and the agent can run out of context before it finishes the task.

    The third cost is wrong choices. Claude picks the right tool less reliably once more than roughly 30–50 tools are loaded at the same time. Overlap makes this worse at any size: if two tools both look like they could answer a request, Claude can pick the wrong one, call the right one with the wrong parameters, or spend turns on a roundabout strategy. A wrong tool call costs a round trip, adds a misleading result to the history, and sometimes performs an action nobody wanted. That last case is why bloat matters for safety as well as cost.

    Checkpoint 1 of 8· Check yourself

    A long-running support agent has GitHub, Slack, Sentry, Grafana and Splunk MCP servers attached. On short requests it works well. On long multi-step investigations it often runs out of context before it finishes. What is the most likely reason the toolset contributes to this?

    Sources12345

    2.Diagnosing bloat in a configuration

    A bloat review reads the configuration against the agent's real workflow and asks one question of every entry: what would break if this were gone? Four kinds of finding come up again and again.

    • Overlapping tools. Two or more tools do much the same job, such as list_users and search_users, or separate get-by-id and list endpoints that are always called together.
    • Unused tools. Definitions the agent never calls in its actual tasks. These are often whole MCP servers connected "just in case".
    • Vague descriptions. A tool whose purpose Claude can't tell apart from a neighbour's, or whose parameters it keeps getting wrong.
    • Over-connected MCP servers. Servers picked up from project files, user settings, plugins or organisation connectors that this agent never meant to use.

    Transcripts and metrics are better evidence than reading the config. Record the total number of tool calls, token consumption and tool errors per task, and read the raw tool calls rather than only the agent's own account of what it did. The patterns that show up point to specific fixes. A run of tool errors for invalid parameters usually means a description needs to be clearer or needs examples. Tools that are always called in the same order are candidates for merging. Tools that never appear in any transcript are candidates for removal.

    Reading tool-call evidence for bloat
    What you observeLikely findingFirst remedy to try
    The same three tools are called in sequence on most tasksOver-fragmented tools that wrap API endpoints one-to-oneMerge them into one higher-level tool
    Frequent tool errors for invalid parametersVague or confusing description or schemaRewrite the description and add examples
    Claude alternates between two similar tools for the same requestOverlapping function or vague purposeMerge the tools, or namespace them so their boundaries are clear
    A connected server's tools never appear in transcriptsUnused capabilityDisconnect the server, or deny its tools for this agent

    Over-connection needs its own check, because MCP servers can come from several places at once. In the Agent SDK, strict_mcp_config set to true uses only the servers passed in mcp_servers, and ignores project .mcp.json, user settings, plugin-provided servers and claude.ai connectors. If an agent's tool list contains servers nobody put in its options, they came in through one of those other routes.

    Checkpoint 2 of 8· Match them up

    Match each pattern from an agent's transcripts and metrics to the first fix to try.

    Tap a term, then the definition that fits it.

    Sources56

    3.Consolidating and namespacing tools

    Consolidation fixes overlap by building tools around tasks rather than endpoints. A common mistake is to write tools that simply wrap existing software functions or API endpoints one-to-one. The agent then has to chain them, reading every intermediate result into its context. A single tool can do several discrete operations or API calls internally and return only what the task needs.

    Endpoint-shaped tools merged into task-shaped ones
    Instead ofImplementWhat the agent no longer has to do
    list_users, list_events, create_eventschedule_eventFind availability itself across three calls
    read_logssearch_logsRead entire logs to find the relevant lines
    get_customer_by_id, list_transactions, list_notesget_customer_contextPut a customer's recent history together from three results
    list_contactssearch_contacts or message_contactScan every contact token by token

    Consolidating pays off twice. There are fewer definitions in context, which keeps the agent further below the 30–50-tool range where selection starts to degrade. And work that used to be the agent's reasoning moves into the tool, so the agent has fewer chances to make a mistake. Give each surviving tool one clear purpose that differs from its neighbours. Tool boundaries should split work the way a person with the same resources would split it.

    Namespacing deals with the tools that rightly remain. When an agent can reach many servers, put related tools under shared prefixes: by service (asana_search, jira_search) and, within a service, by resource (asana_projects_search, asana_users_search). Claude can then tell two search tools apart before it reads either description. Some MCP clients add prefixes by default. Whether the prefix goes at the start or the end of the name has had measurable effects on tool-use evaluations, and the effect differs between models. Choose the scheme by running your own evaluation, not by habit.

    Checkpoint 3 of 8· Check yourself

    Your team is adding namespaces to an agent's tools across Asana and Jira. One engineer wants service prefixes such as asana_projects_search. Another wants suffixes such as projects_search_asana. How should the team decide?

    Sources52

    4.Scoping tools to each agent's role

    Scoping gives each agent or subagent only the tools its role needs. In the Agent SDK this is the subagent's tools field, set in its own AgentDefinition. A subagent doesn't automatically get a narrower set than its parent: if you leave tools out, it inherits every tool available to subagents. A code reviewer launched by a lead agent that has Write, Edit and Bash therefore gets all three unless its own definition lists something narrower. Notes in CLAUDE.md and the parent's permission mode don't change the reviewer's tool set.

    A read-only reviewer subagent: its own tools field limits it to read and search, whatever tools the parent hastypescript
            // tools restricts what the subagent can do (read-only here)
            tools: ["Read", "Grep", "Glob"],
            // model overrides the default model for this subagent
            model: "sonnet"

    Removal works at server level too. disallowedTools takes MCP patterns: mcp__server or mcp__server__* removes every tool from that server, and mcp__* removes every MCP tool from any server. A pattern like mcp__legacy__* strips a legacy server out of one agent while other agents keep it. mcpServers on an agent definition names the only servers that agent gets. Unused servers that no agent needs should be disconnected altogether.

    Approving a tool and scoping a tool are separate controls. allowedTools approves tools in advance so they run without a prompt, but it doesn't stop Claude from calling other tools. The permission mode decides what happens to those other calls. In default, any call that needs approval and matches no allow rule goes to your canUseTool callback, which is no use in a CI job with nobody to answer. In dontAsk, any call that would have prompted is denied, and canUseTool is never called. An allowlist combined with dontAsk is the closed configuration a headless agent needs: listed tools run and everything else is refused.

    A closed, non-interactive tool surface: three tools pre-approved, every other tool call deniedjavascript
    const options = {
      allowedTools: ["Read", "Glob", "Grep"],
      permissionMode: "dontAsk"
    };

    The other modes go the opposite way. bypassPermissions lets tools run without prompts, apart from the few actions no mode auto-approves. Combined with a denylist such as Edit, Write and Bash, it fails open: any tool you forgot to list runs freely. acceptEdits approves file edits and filesystem operations automatically, which is exactly what a read-only agent must not do. allowedTools: ["*"] approves everything in advance. During a bloat review, each of these widens the surface rather than shrinking it.

    Skills count toward the surface as well. A skill is a reusable set of instructions kept in a SKILL.md file inside a skills/<name>/ folder. The file opens with frontmatter, a short block of name: and description: lines between --- markers, followed by the instructions themselves. At session start Claude loads only a short listing of each skill's description; the full text loads when the skill is invoked, either by Claude when the description fits the request or by a person typing /name. Every skill therefore adds an entry to that listing. The description and the optional when_to_use field (trigger phrases or example requests) are cut off together at 1,536 characters to limit context use. If a skill has side effects and a person should decide when it runs, set disable-model-invocation: true in its frontmatter. Claude then won't load it automatically or preload it into subagents, and it runs only when someone types /name.

    Checkpoint 4 of 8· Fill the gap

    A lead agent has Write, Edit and Bash. This excerpt is from the code-reviewer subagent's own definition, and the reviewer must stay read-only whatever tools the parent holds. Which field goes in the blank?

             ? : ["Read", "Grep", "Glob"],
            // model overrides the default model for this subagent
            model: "sonnet"

    Checkpoint 5 of 8· Exam question

    A developer wants to build a code-review agent that must never edit files or run shell commands, even if Claude decides such actions would help, and must not fall back to interactive approval because it runs headless in CI. Which configuration achieves this?

    Checkpoint 6 of 8· Exam question

    A lead agent has allowedTools: ["Read", "Write", "Edit", "Bash", "Agent"] for its own broad development work. The team also defines a code-reviewer subagent that should only ever read and search code, never write files or run shell commands, regardless of what the lead agent is permitted to do. How should the subagent be configured to enforce this?

    Checkpoint 7 of 8· Exam question

    During a capability-bloat review of an agent configuration, which of the following actions would correctly reduce the agent's unnecessary tool surface? (Select all that apply.)(Select 3)

    0 of 3 selected

    Sources78910

    5.Matching the remedy to the source of pressure

    Each bloat remedy acts on a different source of pressure, so the diagnosis decides which one to use. Merging, namespacing and scoping change the set of tools an agent has. The context remedies leave the set alone and change where the tokens go. Choose by where your tokens, or your wrong tool calls, are actually coming from.

    Source of pressure against the remedy that targets it
    Where the pressure comes fromRemedyWhat it changes
    Overlapping or vaguely bounded toolsConsolidate and namespaceFewer, clearly separated tools, so selection gets easier
    One role holding tools another role needsScope with tools, disallowedTools, mcpServersEach agent loads and can call only its own tools
    A large toolset (20+ tools) where most tools aren't needed on a given turnTool searchDefinitions stay out of context until Claude searches for them
    A large but stable toolset sent on many requestsPrompt cachingRepeated definitions cost less; the token count is unchanged
    Old tool_result blocks building up in a long conversationContext editingStale results are trimmed from history
    Chains of small tool calls that could run as one scriptProgrammatic tool callingIntermediate results never enter the conversation

    Programmatic tool calling replaces a chain of tool calls with one script. Instead of five round trips of tool_use and tool_result, Claude writes a single block of code that calls all five functions, and Anthropic's code execution sandbox runs it. Only the script's final output returns to the conversation; the intermediate results never enter the history. It fits repetitive chains of small calls that could run as a single batch, and it does nothing for an oversized toolset.

    Tool search fixes having too many definitions in context, not having tools that overlap. Tool search (defer_loading, tool_reference, ENABLE_TOOL_SEARCH) holds back deferred definitions until Claude searches for them. It costs a little latency, one extra turn to look a tool up, and saves a lot of baseline context. It's the right choice when the catalogue is genuinely large and each request needs only a few tools. It does nothing about two tools with blurred boundaries. When a search turns up both of them, Claude faces the same confusing choice as before, so overlap is still fixed by merging and namespacing.

    Prompt caching is the other remedy that's easy to misapply. It doesn't reduce the number of tokens in context. It reduces what you pay for them on later requests, so a large fixed toolset gets cheaper but takes up just as much of the window and the attention budget. Use it when the problem is cost. When the problem is selection accuracy or running out of context, merge, scope or defer instead.

    The remedies combine without conflict. A sensible order for a high-volume agent is to cache tool definitions from day one, add tool search once the toolset passes roughly 20 tools or baseline context use becomes noticeable, and add context editing when conversations get long enough that early results no longer matter. Merging and scoping come before all of these. A tool you removed costs nothing to defer, cache or trim.

    Checkpoint 8 of 8· Match them up

    A platform team reviews five agents. Each one has a different source of pressure. Pair each situation with the remedy that targets it.

    Tap a term, then the definition that fits it.

    Sources4

    Sources

    (10)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “A typical multiserver setup (GitHub, Slack, Sentry, Grafana, and Splunk) can consume ~55k tokens in definitions before Claude does any work.”
      ↩︎ What too many tools cost an agent
    2. 2.
      “Tool definitions can consume large portions of the context window (50 tools can use 10-20K tokens), leaving less room for actual work.”
      ↩︎ What too many tools cost an agent
      “Tool selection accuracy degrades with more than 30-50 tools loaded at once.”
      ↩︎ Consolidating and namespacing tools
      “Tool selection accuracy degrades with more than 30-50 tools loaded at once.”
      ↩︎ Key concept
      “Tool selection accuracy degrades with more than 30-50 tools loaded at once.”
      ↩︎ Prediction
    3. 3.
      “Every new token introduced depletes this budget by some amount, increasing the need to carefully curate the tokens available to the LLM.”
      ↩︎ What too many tools cost an agent
    4. 4.
      “Long-running agents with many tools or many turns can exhaust available context before the task is finished.”
      ↩︎ What too many tools cost an agent
      “Each approach targets a different source of context pressure. Pick the one that matches where your tokens are going.”
      ↩︎ Matching the remedy to the source of pressure
      “Claude emits one script that calls all five functions from within the sandbox. The intermediate results never enter the conversation history.”
      ↩︎ Matching the remedy to the source of pressure
      “This trades a small amount of latency (one extra turn to look up a tool) for a large reduction in baseline context usage.”
      ↩︎ Matching the remedy to the source of pressure
      “Add tool search once your toolset grows past roughly 20 tools or your baseline context usage becomes noticeable.”
      ↩︎ Matching the remedy to the source of pressure
      “it reduces what you pay for them on subsequent requests”
      ↩︎ Exam trap 4
      “Tool definitions and accumulated tool_result blocks consume your context window.”
      ↩︎ Checkpoint
    5. 5.
      “Agents might call the wrong tools, call the right tools with the wrong parameters, call too few tools, or process tool responses incorrectly.”
      ↩︎ What too many tools cost an agent
      “Tracking tool calls can help reveal common workflows that agents pursue and offer some opportunities for tools to consolidate.”
      ↩︎ Diagnosing bloat in a configuration
      “lots of tool errors for invalid parameters might suggest tools could use clearer descriptions or better examples”
      ↩︎ Diagnosing bloat in a configuration
      “Instead of implementing a list_users, list_events, and create_event tools, consider implementing a schedule_event tool which finds availability and schedules an event.”
      ↩︎ Consolidating and namespacing tools
      “Tools can consolidate functionality, handling potentially multiple discrete operations (or API calls) under the hood.”
      ↩︎ Consolidating and namespacing tools
      “namespacing tools by service (e.g., asana_search, jira_search) and by resource (e.g., asana_projects_search, asana_users_search), can help agents select the right tools at the right time.”
      ↩︎ Consolidating and namespacing tools
      “We have found selecting between prefix- and suffix-based namespacing to have non-trivial effects on our tool-use evaluations.”
      ↩︎ Consolidating and namespacing tools
      “When tools overlap in function or have a vague purpose, agents can get confused about which ones to use.”
      ↩︎ Exam trap 3
      “Effects vary by LLM and we encourage you to choose a naming scheme according to your own evaluations.”
      ↩︎ Checkpoint
    6. 6.
      “When True, use only the servers passed in mcp_servers and ignore project .mcp.json, user settings, plugin-provided MCP servers, and claude.ai connectors.”
      ↩︎ Diagnosing bloat in a configuration
      “This does not restrict Claude to only these tools.”
      ↩︎ Exam trap 1
      “Other unlisted tools fall through to permission_mode and can_use_tool. Use disallowed_tools to block tools.”
      ↩︎ Prediction
    7. 7.
      “Tool restrictions: subagents can be limited to specific tools, reducing the risk of unintended actions.”
      ↩︎ Scoping tools to each agent's role
      “mcp__server or mcp__server__* removes every tool from that server, and mcp__* removes every MCP tool from any server”
      ↩︎ Scoping tools to each agent's role
      “Array of allowed tool names. If omitted, inherits every tool available to subagents”
      ↩︎ Exam trap 2
    8. 8.
      “Any call that would otherwise prompt is denied.”
      ↩︎ Scoping tools to each agent's role
      “calls that need approval and match no allow rule trigger your canUseTool callback”
      ↩︎ Scoping tools to each agent's role
      “Tools run without permission prompts, except for the actions no mode auto-approves.”
      ↩︎ Scoping tools to each agent's role
    9. 9.
      “Set to true to prevent Claude from automatically loading this skill. Use for workflows you want to trigger manually with /name.”
      ↩︎ Scoping tools to each agent's role
      “the combined description and when_to_use text is truncated at 1,536 characters in the skill listing to reduce context usage.”
      ↩︎ Scoping tools to each agent's role
    10. 10.
      “Short summaries; full content loads only when invoked”
      ↩︎ Scoping tools to each agent's role

    Ready to test yourself?

    Practise the 12 questions on this subdomain.

    Spotted a mistake, or was something unclear? Tell us.