Skip to content
Claude Certified Architect – Professional (CCAR-P) Exam Prep

Lesson 16 of 31 · 6 min

x
16/31

Capability Bloat Evaluation

Video lesson: CCAR-P 16/31: Capability Bloat Evaluation

The problem

  • Context bloat: a typical multi-server setup (GitHub, Slack, Sentry, Grafana, Splunk) can consume about 55k tokens of tool definitions before any work starts.
  • Selection accuracy degrades once you exceed roughly 30 to 50 available tools.
  • Tool definitions and accumulated tool_result blocks both consume the window.

Four approaches (verified: "Manage tool context")

ApproachReducesFits
Tool searchTool definitions loaded up frontLarge toolsets (20+) where most are not needed every turn
Programmatic tool callingtool_result round tripsChains of calls that can run as one script
Prompt cachingCost of repeated tool definitionsStable toolsets across many requests
Context editingOld tool_result blocks in historyLong agent loops

Tool search details: include a tool search tool, set defer_loading: true on tools that should not load up front (at least one tool stays non-deferred), and Claude loads matching tools on demand (up to 5 by default). It typically cuts definition tokens by over 85% and keeps selection accurate across hundreds or thousands of tools. In Claude Code, MCP tool search is on by default. Prompt caching does not shrink context; it lowers its price.

Evaluating capability bloat (design guidance)

Treat the capability surface as a budget and audit it:

  1. Inventory: every tool, MCP server, skill, hook and rule file the agent can reach.
  2. Measure usage: how often each tool is called, success rate, tokens consumed by its definition and its outputs.
  3. Find overlap: tools with near-identical descriptions cause misrouting (2.1).
  4. Prune or consolidate: merge related tools into one with an action; remove unused servers.
  5. Defer or scope: defer rarely used tools; give each agent or subagent a small relevant set (2.3).
  6. Re-test selection accuracy and task success after each change (D4.1).

Other bloat sources: oversized CLAUDE.md (keep under about 200 lines; move procedures into skills, whose bodies load only on use), duplicated instructions, verbose tool output.

Exam traps

  • Adding capabilities "just in case".
  • Fixing misrouting with a longer prompt instead of pruning tools.
  • Loading all MCP servers for every task.
  • Not measuring selection accuracy before and after.
  • Disabling tool search with a large toolset.

References

  1. Tool search tool — checked Oct 16, 2026
  2. Manage tool context — checked Oct 16, 2026
  3. MCP in Claude Code — checked Oct 16, 2026

Check your understanding

  • 60 tools across five servers and the agent picks wrongly. Fix?Show answer

    Answer

    Tool search or per-agent scoping, plus consolidating overlapping tools.
  • Does prompt caching reduce context size?Show answer

    Answer

    No; it reduces what you pay for repeated tokens.
  • First step of a capability audit?Show answer

    Answer

    Inventory and measure actual usage and token cost.
Previous

Progress is saved in this browser.

Next Lesson