# 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.

AI and LLM interview question Q177, Agents and tool use. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/what-makes-a-good-tool-set

## Say it in 30 seconds

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.

## Say it in 2 minutes

Start from the jobs and work back to the API. A common mistake is one tool per endpoint. The agent then faces a long list, and it has to chain several calls to answer one question. I build a few tools around whole tasks instead. At a bank's card dispute desk, one tool reviews a dispute, with its status, merchant and history in one answer.

Then I check three things. Overlap comes first: if two tools could answer the same question, the model guesses, so I merge them. Results come second: I return only the fields the job needs, page long lists, and write errors that say how to fix the call. Third is access. Reading tools can't change a record, and anything that pays, files or sends waits for a person.

I don't trust a set until it has run on real tasks. I write about thirty of them with the support leads, log every call and wrong pick, and count the tokens and errors. Then I change one thing and run the same tasks again. The goal is a set the agent can use without guessing, with a person still in charge of the big moves. Each round takes a day, so I keep the set small enough to test quickly.

## 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.

- **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.

*Diagram, Same dispute question, two tool sets: 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.*
1. The agent calls the wrappers one by one and joins the answers itself.
2. The task tools answer the whole question in one or two calls.

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. **Split reads from writes:** A read tool can look but never change a record. A write tool gets its own narrow job.
2. **Give each tool its own limits:** Cap amounts, lock to one account, and allow only the fields the job needs.
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. **Ask a person before big moves:** Anything that pays, files or sends waits for approval. OWASP recommends human control over high-impact actions.

*Diagram, Read tools and write tools, limited apart: 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.*
1. The agent reaches its read tools freely.
2. The agent reaches the write tools only to draft replies. Filing sits with the reviewer role.
3. A read cannot change a record, so the damage stops there.
4. A write drafts a reply, or files 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:

```text
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. **Write thirty real tasks:** Ask the support leads for the questions they really get, with the answers they expect.
2. **Run them through the agent:** Log every call, every wrong pick and every error the agent hit.
3. **Count what matters:** Measure accuracy, the number of calls, the tokens used and the errors. Anthropic recommends collecting these together.
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." Better: Every extra tool adds confusion. Build a few tools around real jobs.
- Trap: "More tools give the agent more options." Better: More tools can make the agent slower and less accurate, especially when they overlap.
- Trap: "Full results are safer, because nothing gets missed." Better: Long 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?

A. get_order_status(order_id): reads the status of one order
B. search_returns(customer_id, from_date): lists returns, 20 at a time
C. issue_refund(order_id, amount): refunds any amount to the card on file, no limit, no approval
D. get_return_policy(): returns the policy text

**Answer:** C. issue_refund moves money with no limit and no person in the loop. Keep the tool, but cap the amount and send large refunds to a person.

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

A. A longer list of rules in the prompt
B. Merge them into one clear lookup tool with a short result
C. A bigger model
D. Stricter output formatting

**Answer:** B. Overlap makes the model guess, so one clear tool fixes it. A longer prompt, a bigger model or stricter formatting leave the overlap in place.

## Can you answer these from memory?

**Flash cards**

- **What is a tool set?** The full list of tools the agent can choose from on one turn.
- **Why avoid one wrapper per endpoint?** The agent chains many calls. Build tools around real jobs.
- **What is the overlap problem?** Two tools answer the same question, so the model has to guess.
- **What should a result hold?** Only the fields the job needs, paged, with errors that name the fix.
- **What is least privilege?** Each tool gets only the access it needs. Split reads from writes.
- **What do you test?** The whole set on real tasks: wrong picks, calls, tokens and errors.

## Likely follow-up questions

- Q107 How do you write good tool descriptions? https://designervenkat.online/interview/ai/how-do-you-write-good-tool-descriptions
- Q175 What makes a tool-calling loop reliable enough to ship? https://designervenkat.online/interview/ai/reliable-tool-calling-loop
- Q176 How should an agent handle tool errors and retries? https://designervenkat.online/interview/ai/how-should-an-agent-handle-tool-errors-and-retries
- Q179 Excessive agency and least privilege? https://designervenkat.online/interview/ai/excessive-agency-and-least-privilege
- Q186 What is tool-result poisoning? https://designervenkat.online/interview/ai/what-is-tool-result-poisoning
- Q197 Design a tool layer for native, OpenAPI and MCP tools. (full answer coming)

## Learn it in depth

- [Function Calling](https://designervenkat.online/learn/ai-engineering/function-calling)
