Many tools vs fewer tools plus code — Guided reading
MCP Engineering course · M4
This guided reading accompanies the debate section of lesson L15 (Tool design and context efficiency). It presents a real, still-open discussion in the MCP community: should an agent get many explicit tools, or fewer tools plus code? Both positions are quoted with exact attribution. The goal is not to memorise a winner (there is none) but to reason about the trade-off for your own case.
What changed in V2: this reading used to be its own lesson. In V2 the debate is part of L15, next to the context-efficiency levers it depends on. The reading also corrects three attributions (the GitHub MCP figure, a post title quoted as a sentence, and an uncited "thread") and updates the state of the debate to November 2026.
Why this matters
The natural reflex is "my API has 30 endpoints, so I expose 30 tools". It works. But every tool costs context before any work begins, and with many similar descriptions the model picks the wrong tool more often. The debate is not about style: it touches cost, selection quality, auditability, debuggability and security.
Position A — explicit tools
One tool per meaningful operation, each with a name and a schema.
- Straightforward to build.
- Easy to audit: you can read exactly what the agent may do from
tools/list. - Deterministic to debug: when something fails, you know which call failed.
Position B — fewer tools plus code
- Armin Ronacher, in his post titled "Your MCP Doesn't Need 30 Tools: It Needs Code" (2025-08-18), proposes MCP servers that expose a single tool accepting program code. (That is the post's title, not a quotation from elsewhere.)
- Simon Willison's link post (2025-08-22), which highlights Geoffrey Huntley's article, states that adding the GitHub MCP server "defines 93 additional tools and swallows another 55,000" tokens. That figure dates from August 2025 and the server may have changed since: measure today's version before quoting it.
- Ronacher again, in "Skills vs Dynamic MCP Loadouts" (a blog post, 2025-12-13), describes replacing his remaining MCP integrations with skills.
- Anthropic's "Code execution with MCP" (2025-11-04) reports 150,000 → 2,000 tokens (98.7%) for one Google Drive to Salesforce example, by presenting MCP tools as code files the agent loads on demand. (Not to be confused with Programmatic Tool Calling's 37%; see the L15 cheat sheet.)
What changed since then (state of the debate, November 2026)
- The platform features Tool Search (
defer_loading) and Programmatic Tool Calling shipped on the Claude Developer Platform in November 2025 (beta). They are host/API features, not MCP. - Protocol 2026-07-28 added deterministic ordering of
tools/listand cache hints (ttlMs,cacheScope). - "Skills over MCP" became an official, opt-in extension.
- Progressive discovery became a roadmap priority (not shipped).
The debate has narrowed, but it is not settled.
The trade-off
| Explicit tools | Fewer tools plus code | |
|---|---|---|
| Token cost | Grows with the catalog | Lower for multi-step data work |
| Auditability | Every action is a named call | Actions are inside generated code |
| Debugging | Per-call errors | Errors inside scripts |
| Security | Each tool scoped and validated | Needs a sandbox and egress limits |
| Works on any host | Yes | Depends on the host or harness |
How to decide for your case (rules of thumb)
- Start with a handful of explicit, task-level tools. Most servers never need more.
- Measure the size of your
tools/list(the L15tool_budget.pyexercise) and watch for wrong-tool choices in your host's traces. - If the catalog must grow, use the MCP levers first: merge similar tools, tighten schemas, link instead of inlining, scope tools by authorization.
- If your host offers deferred loading, enable it for big catalogs (a host setting).
- Move to code execution only for multi-step, data-heavy flows, and only with a sandbox.
Worked case: an agent in a regulated domain, where every action must be auditable, with 8 distinct operations. Choose explicit tools: the catalog is small, token savings are minor, and named, schema-validated calls give the audit trail you need. Reconsider only if measurement shows a real problem.
Reflection questions
- How many tools does your server expose? Are they distinct, or do they look alike?
- How many characters (or tokens) do your definitions take before the agent does anything? Have you measured it?
- Do you see the model choosing the wrong tool as the catalog grows?
- How critical is it to audit every step in your product?
- If you went the code route, could you run it in a sandbox with egress limits?
- Which levers belong to your server (MCP), and which would depend on your users' host?
Sources
- Ronacher, "Your MCP Doesn't Need 30 Tools: It Needs Code" (2025-08-18): https://lucumr.pocoo.org/2025/8/18/code-mcps/
- Ronacher, "Skills vs Dynamic MCP Loadouts" (2025-12-13): https://lucumr.pocoo.org/2025/12/13/skills-vs-mcp/
- Willison, link post highlighting Huntley (2025-08-22): https://simonwillison.net/2025/Aug/22/too-many-mcps/
- Anthropic, "Code execution with MCP" (2025-11-04): https://www.anthropic.com/engineering/code-execution-with-mcp
- Anthropic, "Advanced tool use" (2025-11-24): https://www.anthropic.com/engineering/advanced-tool-use
- MCP roadmap (updated 2026-08-22): https://modelcontextprotocol.io/development/roadmap
To remember
- No winner yet. It is a trade-off, not a dogma.
- Explicit tools = auditable and debuggable; costlier as the catalog grows.
- Fewer tools plus code = token-efficient for data-heavy flows; needs a sandbox and depends on the host.
- Method: start simple → measure → MCP levers → host features → code, only when the pain shows up.
Turning Point Academy · MCP Engineering course · Module 4 · Lesson 15 (L15), guided reading · V2, spec 2026-07-28