esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

What Makes a Good Tool Set?

What makes a set of agent tools easy to pick, safe to use and cheap to run, and how to build one, explained simply for your AI interview.

In short

A good tool set has few tools, each built around a real job, with no overlap between them. Each tool returns only what the agent needs, fails with a clear message, and gets only the access it must have.

13 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

A good tool set is small, clear and built around real jobs. Each tool finishes a whole task, so the agent doesn't have to chain a dozen thin calls. Overlapping tools confuse the model, so I merge them. Results carry only the fields the job needs, and errors say how to fix the call. Tools that write get tight limits, and a person approves the risky ones. Then I test the whole set on real tasks and count the wrong picks.

What is a good tool set, in plain words?

A tool is a function your code offers the model. The model never runs it. It asks for it by name, your code does the work, and the result goes back to the model. A tool set is the full list the agent can see when it picks its next step.

Anthropic's engineers say a tool is a new kind of software: a contract between deterministic systems, which do the same thing every time, and non-deterministic agents, which may choose a different path each time. So a tool has to suit the agent as well as the programmer who wrote it.

Think of a ward nurse at the start of a shift. She does not wheel in every drug in the hospital. She takes the few things this shift needs, each clearly labelled, so she finds the right one in seconds. A good tool set works the same way: the dispute agent gets only the tools its job needs, not every table in the bank.

Key words

Tool set
The full list of tools the agent can choose from on one turn.
Tool result
What the tool sends back. The model reads it before its next step.
Overlap
Two tools that could answer the same question, so the model has to guess.
Least privilege
Each tool gets only the access its job needs, and no more.

What makes a tool set good, and what makes it bad?

A common mistake starts from the API, the set of doors other software can open. Each endpoint, one address the system exposes, becomes its own tool, so the agent faces dozens of thin wrappers (small functions that only pass one call through). Anthropic's engineers call this a common error. Wrappers suit a programmer who knows the system. An agent has to pick one from a long list on every turn, and it can only hold so much information at once.

  • “More tools don't always lead to better outcomes.”

    Anthropic

  • “When tools overlap in function or have a vague purpose, agents can get confused about which ones to use.”

    Anthropic

So the first rule is fewer, better tools, built around jobs. Anthropic recommends building a few thoughtful tools for specific high-impact workflows. The second rule is to check for overlap. If two tools answer the same question, the model has to guess, and a wrong guess costs a call and a delay.

  • Built around jobs

    A few tools that each finish a real task, such as reviewing one dispute.

  • No overlap

    One clear purpose per tool, so the model never has to guess between two.

  • Clear names

    Plain words, and one shared prefix for the tools that belong to one system.

  • Small results

    Only the fields the job needs, in the same shape every time.

Here is a made-up case close to real bank work. A mid-size bank built a card dispute agent for its support team. The first version had twelve tools, one for each table lookup. To answer a customer who asks "Why was I charged twice?", the agent had to chain four calls and join the answers itself.

Same dispute question, two tool sets

One wrapper per endpoint

get_transaction

one row, by its ID

list_transactions

all rows, page by page

get_merchant

the merchant record only

get_dispute_status

the status code only

One tool per job

review_dispute

status, merchant and history

search_transactions

filtered, 10 rows a page

Four calls, stitched

slow, costly, easy to misread

One or two calls

one answer, in the shape it needs

  1. 1The agent calls the wrappers one by one and joins the answers itself.
  2. 2The task tools answer the whole question in one or two calls.
The chart shows four of the twelve wrappers. They make the agent chain calls and join the answers itself. Task tools answer in one or two calls, with only the fields the job needs.

The rebuild kept four task tools. Each one answers a whole question in one call:

  • review_dispute

    One call returns the status, the merchant and the dispute history.

  • search_transactions

    Filters by card and text, and returns 10 rows at a time.

  • draft_customer_update

    Writes a reply for a person to read. It sends nothing.

  • file_dispute

    Files the claim, but only after a person approves it.

Tip

Asked where to start? Name the three or four jobs the agent must finish, then build one tool per job. Add more only when your tests show a gap.

What should each tool send back?

Tool results go straight into the model's working text, and every line costs room and money. Each token is a small piece of text, the unit AI services count and bill. Anthropic's advice is to return only the information that matters to the agent.

Two habits keep results lean. Page long lists instead of returning everything, and let the agent ask for more detail when it needs it. Anthropic suggests combining paging (one page at a time), choosing a date or number range, filtering, and cutting off long text.

  • Bad result

    Every row, no paging

    The model reads thousands of rows to find ten, and runs out of room.

  • Good result

    Ten rows and a next page

    The model gets what it asked for, plus a short way to fetch more.

Errors matter too. A bare error code leaves the model guessing. Anthropic says to write errors that name the fix. When the dispute search gets a date it can't read, the tool replies "Date must look like 2026-11-01. Try again." The model can then retry with a corrected value.

Tip

Asked how to check a result is lean? Count the tokens it returns for a normal question. If most of them never reach the answer, cut them.

How do you keep a tool set safe?

Every tool is a door. A tool that reads a record opens one door. A tool that pays, files or sends opens another. OWASP's 2026 list covers this under Excessive Agency, the vulnerability that enables damaging actions to be performed in response to unexpected, ambiguous or manipulated outputs from an LLM.

  • “Limit the tools that LLM agents are allowed to call to only the minimum necessary.”

    OWASP, LLM03:2026

  • “Keep the number of initially available functions small for higher accuracy.”

    OpenAI

  1. 1

    Split reads from writes

    A read tool can look but never change a record. A write tool gets its own narrow job.

  2. 2

    Give each tool its own limits

    Cap amounts, lock to one account, and allow only the fields the job needs.

  3. 3

    Remove the tools you dropped

    An old tool stays live unless someone removes it. OWASP warns that a dropped tool can remain available to the agent.

  4. 4

    Ask a person before big moves

    Anything that pays, files or sends waits for approval. OWASP recommends human control over high-impact actions.

Read tools and write tools, limited apart

Dispute agent

three of the desk's four tools

Read only

review_dispute

reads one dispute

search_transactions

reads only, never edits

Writes

draft_customer_update

writes a reply, sends nothing

file_dispute

reviewer role, after a person's yes

Damage limited

money moves only after a person's yes

  1. 1The agent reaches its read tools freely.
  2. 2The agent reaches the write tools only to draft replies. Filing sits with the reviewer role.
  3. 3A read cannot change a record, so the damage stops there.
  4. 4A write drafts a reply, or files a claim only after a person approves it.
Each tool gets its own limit. Reads cannot change a record. Writes draft a reply, or file a claim only after a person approves it.

Back to the bank. The dispute agent can read one dispute, search transactions and draft a reply. It cannot file a claim on its own, because the file tool is not in its role at all. A reviewer's role can call that tool, and even then the code holds the call until a person approves it. If a planted line in a customer's email tricked the agent into asking, the answer would be DENIED. Here is the same idea in a small program, with the role and the approval checked in code:

Python
# A made-up dispute desk: each role gets only the tools it needs.
ROLE_TOOLS = {
    "agent": {"review_dispute", "search_transactions", "draft_customer_update"},
    "reviewer": {"review_dispute", "search_transactions", "file_dispute"},
}
NEEDS_APPROVAL = {"file_dispute"}  # moves money or closes a case

def call(role, tool, dispute_id, approved=False):
    if tool not in ROLE_TOOLS.get(role, set()):
        return "DENIED: " + role + " cannot use " + tool
    if tool in NEEDS_APPROVAL and not approved:
        return "HELD: " + tool + " on " + dispute_id + " needs a person to approve"
    return "OK: " + tool + " on " + dispute_id

print(call("agent", "file_dispute", "D-1042"))
print(call("agent", "review_dispute", "D-1042"))
print(call("reviewer", "file_dispute", "D-1042"))
print(call("reviewer", "file_dispute", "D-1042", approved=True))

Output

DENIED: agent cannot use file_dispute
OK: review_dispute on D-1042
HELD: file_dispute on D-1042 needs a person to approve
OK: file_dispute on D-1042

How would you test a new tool set before launch?

Test the whole set on real tasks, so the tools are judged together. Anthropic recommends a quick prototype first, then evaluations (scored tests on real tasks) run by agents. Strong evaluation tasks might need several tool calls, because real work does. Anthropic advises against overly simplistic tests.

  1. 1

    Write thirty real tasks

    Ask the support leads for the questions they really get, with the answers they expect.

  2. 2

    Run them through the agent

    Log every call, every wrong pick and every error the agent hit.

  3. 3

    Count what matters

    Measure accuracy, the number of calls, the tokens used and the errors. Anthropic recommends collecting these together.

  4. 4

    Change one thing, run again

    Merge, rename or cut one tool, then re-run the same tasks to see whether the agent did better.

OpenAI's function calling guide gives the same advice in its own words: evaluate your performance with different numbers of functions. Count the wrong picks as well as the right answers. If the agent calls search_transactions when it should call review_dispute, the two tool descriptions probably overlap, so fix that before you add anything new.

What does the interviewer want to hear?

A strong answer covers

  • Build tools around real jobs, not around every API endpoint.
  • Keep the set small and remove overlap, so the model has less to guess.
  • Return only the fields the job needs, with errors that name the fix.
  • Give each tool the least access it needs, and split reads from writes.
  • Put a person in front of any risky action.
  • Test the whole set on real tasks, and count the wrong picks.

Common traps

  • Trap"Give the agent every endpoint, it will sort it out."

    BetterEvery extra tool adds confusion. Build a few tools around real jobs.

  • Trap"More tools give the agent more options."

    BetterMore tools can make the agent slower and less accurate, especially when they overlap.

  • Trap"Full results are safer, because nothing gets missed."

    BetterLong results waste room and hide the answer. Page them and say what the next step is.

Can you spot the risky tool?

Spot the risky tool

A returns assistant has four tools. Which one is the most dangerous as written?

Quick check

A support agent has get_customer, search_customers and fetch_customer_info, and they overlap. What is the best first fix?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q107How do you write good tool descriptions?11 min
  2. Q175What makes a tool-calling loop reliable enough to ship?13 min
  3. Q176How should an agent handle tool errors and retries?14 min
  4. Q179Excessive agency and least privilege?11 min
  5. Q186What is tool-result poisoning?13 min
  6. Q197Design a tool layer for native, OpenAPI and MCP tools.Coming soon

Learn it in depth

Last updated on 26 November 2026

Is your agent's tool list getting messy?

I design and build AI agents and the tool sets behind them, including the UI and the system underneath. Book a short call and tell me what your agent needs to do.