Skip to content
AgenticAIWiki
  1. Learn
  2. Part 7
  3. 34. Designing good tools
  4. 34.4

Lesson 34.4 · 4 of 6 · 4 min read · Reviewed 24 Nov 2026

How many tools is too many

By the end, you can

  • Explain why too many tools hurt selection.
  • Reduce the tool count per agent.

More tools feels like more capability. Past a point it’s the opposite.

Why too many tools hurt

  • Context: each definition takes tokensToken: The unit a model reads and writes: a word, part of a word, a space or a symbol, mapped to an integer id. on every turn.
  • Confusion: similar tools compete, and the model picks the wrong one more often.
  • Risk: every extra tool is another thing that can be misused.

There’s no magic number, but a handful of well-separated tools per agentAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. is a good target. Twenty overlapping ones is a warning sign.

Ways to cut down

  1. Split by role. A triage agent with lookup tools, a billing subagentSubagent: A separate agent instance, with its own context and instructions, that a main agent delegates a task to. with refund tools, a writer with none (chapter 43).
  2. Merge tools that differ only in a parameter: get_order_by_id and get_order_by_email become get_order with either field.
  3. Make tools higher level. schedule_meeting instead of list_calendars + find_slot + create_event, when that’s the usual flow.
  4. Load on demand. Some platforms, including the Claude API, offer a tool search feature that keeps a large catalogue out of the context until it’s needed.

Key points

  • Every tool definition costs context, and similar tools compete for selection.
  • Accuracy drops as the list grows long, especially with overlapping tools.
  • Give each agent or subagent only the tools for its role; load others on demand where the platform allows it.
Hands-on labRuns in the Playground

Find overlapping tools in a catalogue

Spot tools that compete for the same requests, and see what the definitions cost each turn.

You will have: An overlap report with merge suggestions and a token estimate per turn and per session.

Steps

  1. Fill in overlap(): shared words over all distinct words.
  2. Run it and read the flagged pairs.
  3. Estimate the definition tokens per turn at about 4 characters per token.
  4. Merge one flagged pair by hand and run the report again.

Done when

  • Two pairs are flagged.
  • The two get_order tools are one of them.
  • The token estimate is printed per turn and for 40 turns.

Open in the Playground No API key needed.

Starter code (Python)
# Audit a tool catalogue: find overlapping tools and estimate what the definitions cost per turn.
import itertools
import json
import re

catalogue = [
    {"name": "get_order_by_id", "description": "Get an order and its status using the order id."},
    {"name": "get_order_by_email", "description": "Get an order and its status using the customer email."},
    {"name": "search_help", "description": "Search the public help centre for how-to articles."},
    {"name": "search_docs", "description": "Search the public help centre for articles."},
    {"name": "issue_refund", "description": "Refund one order, up to the policy limit."},
    {"name": "get_customer_profile", "description": "Profile for one customer: name, email and plan."},
]
STOP = {"the", "a", "an", "and", "its", "for", "one", "to", "using", "up"}


def words(t):
    return {w for w in re.findall(r"[a-z]+", t["description"].lower()) if w not in STOP}


def overlap(a, b):
    # TODO: Jaccard similarity: shared words divided by all distinct words of the two descriptions
    return 0.0


pairs = [(a["name"], b["name"], overlap(a, b)) for a, b in itertools.combinations(catalogue, 2)]
flagged = [p for p in pairs if p[2] >= 0.5]
for a, b, s in flagged:
    print(f"overlap {s:.2f}: {a} and {b} -> merge or sharpen")
print("overlapping pairs:", len(flagged))
# TODO: estimate the definition tokens per turn (about 4 characters per token) and over 40 turns
Show a solution
# Audit a tool catalogue: find overlapping tools and estimate what the definitions cost per turn.
import itertools
import json
import re

catalogue = [
    {"name": "get_order_by_id", "description": "Get an order and its status using the order id."},
    {"name": "get_order_by_email", "description": "Get an order and its status using the customer email."},
    {"name": "search_help", "description": "Search the public help centre for how-to articles."},
    {"name": "search_docs", "description": "Search the public help centre for articles."},
    {"name": "issue_refund", "description": "Refund one order, up to the policy limit."},
    {"name": "get_customer_profile", "description": "Profile for one customer: name, email and plan."},
]
STOP = {"the", "a", "an", "and", "its", "for", "one", "to", "using", "up"}


def words(t):
    return {w for w in re.findall(r"[a-z]+", t["description"].lower()) if w not in STOP}


def overlap(a, b):
    wa, wb = words(a), words(b)
    return len(wa & wb) / len(wa | wb)


pairs = [(a["name"], b["name"], overlap(a, b)) for a, b in itertools.combinations(catalogue, 2)]
flagged = [p for p in pairs if p[2] >= 0.5]
for a, b, s in flagged:
    print(f"overlap {s:.2f}: {a} and {b} -> merge or sharpen")
print("overlapping pairs:", len(flagged))

tokens = sum(len(json.dumps(t)) for t in catalogue) // 4  # rough: about 4 characters per token
print(f"definition tokens per turn: about {tokens}, or {tokens * 40} over a 40-turn session")
Quick checkA single agent has 25 tools and often picks the wrong one. What's the best structural fix?
How sure are you?
Pick an answer and how sure you are