Skip to content

2.3 Tool Distribution & Tool Choice

An agent’s tools are the functions it can call. Tool selection is the model’s choice of which tool to call. Tool distribution is the choice of which agent in a multi-agent system holds which tools. The number of tools an agent holds directly affects how reliably it selects the right tool. So tool distribution is an architectural decision that determines whether a multi-agent system works in production.

This lesson uses one made-up example throughout: a print shop run by a small team of agents. An order agent handles orders and customer messages, and an artwork agent prepares files for the press. A quoting agent prices jobs, a stock agent tracks paper, and a coordinator hands work between them.

When you give a single agent 18 tools, the agent selects tools less reliably. Every additional tool makes the decision more complex, so error rates increase as the toolkit grows. Keep each agent’s set of tools small and scoped to its role. In the print shop, each agent chooses only between the few tools that its role needs.

The relevance of the tools matters as much as their number. An agent that has tools outside its specialisation tends to misuse them. For example, an agent that has a search tool outside its role may run its own searches instead of using the results that it already received. Those extra searches duplicate work and waste context. If the print shop’s quoting agent has a search tool, it may search the orders again rather than price the job that it received. Each agent gets only the tools that its defined role needs.

Splitting tools by role is the wrong fix when the tools all do the same kind of work. Take a server with 22 tools. Three are query tools, one for each data source. The other 19 are transformations, such as pivot_table, calculate_percentile and normalise_currency. If you split these tools by role, a transformation agent gets 19 tools. The transformation agent now has the original problem: it still cannot choose reliably.

The 19 transformations share a shape: data in, an operation, data out. So combine them into one tool whose parameter names the operation:

{
"name": "transform_data",
"description": "Apply a transformation to a dataset. Use transform_type to select the operation.",
"input_schema": {
"type": "object",
"properties": {
"dataset": { "type": "string" },
"transform_type": {
"type": "string",
"enum": ["pivot", "percentile", "normalise_currency", "..."]
},
"options": { "type": "object" }
},
"required": ["dataset", "transform_type"]
}
}

Twenty-two tools become four, and nothing is lost. Each transformation is now an enum value that the model picks inside a single call, not a tool to find among nineteen near-identical descriptions. The model selects more accurately because it now chooses between fewer tools. The capability stays the same.

The print shop’s artwork operations share a shape too. Resizing, adding bleed and converting to CMYK each take a file in and return a file. One artwork tool with an operation parameter replaces those three operations.

To pick the fix:

The tools are… The fix
Few enough to handle, but two of them read alike Sharpen the descriptions (Task Statement 2.1)
Different jobs (query, transform, export) Split by role, a small set each (the guide’s example is 4-5, against 18)
Variations on one job, sharing a shape Consolidate into one parameterised tool
Doing more than the agent should be able to do Constrain them (next section)

Task Statement 2.1 teaches more specific descriptions as the fix when the model selects the wrong tool. That fix is right when the toolkit is small enough to reason about. If the print shop’s order agent holds five tools and picks get_customer when it needed lookup_order, that is a description problem. The same symptom from a set of 22 tools is not a description problem. At that size, no description quality fixes selection, and rewriting all 22 descriptions leaves the decision as complex as it was. Count the tools before you pick the fix.

Moving tools onto a second MCP server is no fix. A client gives the model every tool from every connected server as one flat list. Server boundaries are invisible to the model, so 22 tools on two servers are still 22 tools.

Replacing Generic Tools with Constrained Alternatives

Section titled “Replacing Generic Tools with Constrained Alternatives”

A fetch_url tool can fetch anything from anywhere. A load_document tool validates document URLs and accepts those only. Giving a subagent load_document instead:

  • Prevents misuse (the agent cannot fetch arbitrary URLs)
  • Makes the tool’s purpose clearer (the description is specific, not generic)
  • Reduces the risk of unintended side effects (no fetching of non-document resources)

Giving the agent load_document applies least privilege to tool design. Each tool does exactly what the agent needs and nothing more. The print shop’s artwork agent needs customer files, so load_document is enough.

Consolidating tools reduces how many tools an agent chooses between. Constraining tools reduces what any one tool can reach. Combining 19 transformations into transform_data gives the agent no new capabilities, so consolidation does not undo least privilege. Replacing fetch_url with load_document does the opposite job.

Sometimes an agent needs occasional access to a capability that belongs to another role. The naive approach routes every such request through the coordinator, which delegates, waits for the result and passes it back. That adds 2-3 round trips per request and can increase latency by 40% or more. For simple lookups that take milliseconds, the round trip is waste.

A scoped cross-role tool is a constrained version of the capability. The agent that needs the capability gets this tool directly. The agent uses it for simple requests that happen at high frequency. Complex cases still route through the coordinator. These cases need multiple sources, cross-referencing or real judgement. The print shop’s quoting agent checks paper stock for nearly every quote, so it gets a scoped check_stock tool for simple lookups. Harder checks still go through the coordinator to the stock agent.

The tool’s input schema defines the scope. If the schema omits a field, the agent cannot make a request with that field.

{
"name": "check_stock",
"description": "Check how many sheets of one paper stock are in the warehouse. Takes a single stock code. For substitutions, supplier lead times or anything that needs judgement, ask the coordinator.",
"strict": true,
"input_schema": {
"type": "object",
"properties": {
"stock_code": { "type": "string", "pattern": "^PS-[0-9]{4}$" }
},
"required": ["stock_code"],
"additionalProperties": false
}
}

This schema accepts one stock code and nothing else. It has no free-text query, no supplier field and no list of codes. So the quoting agent cannot use the tool to browse the stock agent’s data. The description names what the tool does not do and where to send those requests. With strict: true, the API constrains Claude’s tool inputs to the schema, so every call contains exactly one code in the right format.

Build the limit into the structure of the schema. Strict tool use supports enum, pattern and an array minItems of 0 or 1. The API rejects maxItems, maxLength, minimum and maximum with a 400 error when the API receives the schema unchanged. So “one stock code per call” is a single string field, not an array with maxItems: 1. A limit that the schema cannot express belongs in the code that runs the tool. An example is how many checks the agent may run for one quote.

The tool_choice parameter controls how the model interacts with the tools available. Each of its three settings has its own job.

"auto" (default) The model decides whether to call a tool or return text. Use it for general operation, where the model needs flexibility to respond conversationally when no tool call is appropriate. The print shop’s order agent fits: some messages need a lookup, some only a reply.

{
"tool_choice": { "type": "auto" }
}

"any" The model must call a tool but chooses which one. Use it when you need guaranteed structured output from one of multiple schemas. The model always produces a tool call, never plain text.

{
"tool_choice": { "type": "any" }
}

Extraction pipelines are the usual case. Say a pipeline has one schema each for invoices, receipts and contracts, and the document type is unknown. Then "any" guarantees that the model picks one schema and produces structured output, not a conversational response. The print shop’s order agent needs "any" when an order could be for business cards, posters or banners.

Forced selection The model must call one specific named tool. Use it to enforce a mandatory first step: the model cannot skip or reorder the required operation.

{
"tool_choice": { "type": "tool", "name": "extract_metadata" }
}

Forced selection enforces the order of the workflow. If metadata extraction must happen before any enrichment tools run, forcing extract_metadata guarantees that order. The model cannot go directly to enrichment. After the forced call completes, later turns can use "auto". The print shop’s artwork agent could force a file check first in the same way.

The guide compares 18 tools with 4-5 per agent. That comparison is an illustration, not a hard limit.

Candidates make mistakes on the first row of the fix table. The exam also favours questions about how consolidation and constraint seem to conflict. Both can be right in the same system.

The guide’s sample Question 9 tests scoped cross-role tools directly. In that question, a synthesis agent sends every fact verification through the coordinator, and 85% of them are simple lookups. For frequent simple fact verifications, the synthesis agent gets a scoped verify_fact tool. Complex verifications, the other 15%, still go to the web search agent through the coordinator. The guide’s reasoning is least privilege: the synthesis agent gets only what the 85% case needs. Scope verify_fact the way check_stock is scoped. It takes one claim in and gives a verdict out. It has no query or URL field that would let the synthesis agent run its own searches.

In a multi-agent research system, the synthesis agent should not have web search tools, or it might run its own searches. The web search agent should not have document analysis tools. A well-designed layout:

Agent Tools (4-5 each)
Web Search search_web, fetch_page, extract_links, save_snippet
Document Analysis extract_metadata, extract_data_points, summarize_content, verify_claim
Synthesis compile_report, verify_fact (scoped), format_citation, assess_coverage
Coordinator Agent (formerly Task, used to spawn subagents), review_output, request_revision

The coordinator holds no domain-specific tools itself.

Current state (checked 6 October 2026): Anthropic’s tool search docs say Claude’s ability to pick the right tool degrades once you exceed 30 to 50 available tools. On the exam, use the guide’s 18-versus-4-5 framing.

Five exam-style multiple-choice questions on Tool Distribution & Tool Choice. Pick an answer, then open the explanation.

A synthesis agent frequently returns control to the coordinator for simple fact verification, adding 2-3 round trips per task and 40% latency. Analysis shows 85% of verifications are simple lookups. What is the most effective solution?

  • A. Increase the coordinator’s parallelism to process verifications faster.
  • B. Cache verification results at the coordinator so repeated lookups return instantly.
  • C. Give the synthesis agent its own scoped verify_fact tool, routing only complex checks to the coordinator.
  • D. Remove fact verification from the synthesis workflow altogether, which eliminates the round trips and the latency they cause.
Answer & explanation

Correct: C

  • C is correct because a scoped cross-role tool handles the 85% simple case in place, which is where the round-trip latency is going. The complex remainder still routes through the coordinator, so nothing is lost.
  • A is wrong because a faster coordinator does not remove unnecessary round trips. The latency comes from the routing itself, not from how quickly the coordinator works.
  • B is wrong because caching only helps the second time a fact is checked. First-time verifications are the majority here, and they still pay the full round trip.
  • D is wrong because dropping verification trades quality for speed. The goal is to make the common case fast, not to stop checking.

A document analysis pipeline must always extract metadata before running any enrichment tools. Which tool_choice configuration enforces this?

  • A. tool_choice: { type: “tool”, name: “extract_metadata” } for the first call, then { type: “auto” } after.
  • B. tool_choice: { type: “auto” }, since the model extracts metadata first anyway.
  • C. tool_choice: { type: “any” }, since the model must call a tool and will pick extract_metadata.
  • D. List extract_metadata first in the tools array, since the model prefers whatever comes first.
Answer & explanation

Correct: A

  • A is correct because forced selection guarantees extract_metadata runs first: the model cannot skip it or reorder it. Switching to “auto” afterwards leaves the enrichment tools free to be chosen on their merits.
  • B is wrong because “auto” lets the model decide whether to call a tool at all. It may jump straight to enrichment or answer in prose.
  • C is wrong because “any” guarantees a tool call but not which tool. An enrichment tool satisfies it just as well as extract_metadata.
  • D is wrong because array position carries no ordering guarantee. Selection runs on descriptions and context, not on where a tool sits in the list.

An agent has 18 tools available and is consistently selecting the wrong tool for user queries. What is the most likely root cause?

  • A. The tool descriptions need considerably more detail than they currently carry, so the model can tell them apart.
  • B. The model needs few-shot examples so it can learn the correct selection patterns from worked cases in the prompt.
  • C. tool_choice should be set to “any” so that a tool call is always forced.
  • D. The agent has too many tools, which degrades selection reliability, and 4-5 scoped tools is the range.
Answer & explanation

Correct: D

  • D is correct because selection reliability falls away as the tool count climbs, and 18 options is well past the point where descriptions can carry the decision. Scoping an agent to 4-5 tools matched to its role is the fix.
  • A is wrong because better descriptions help but cannot undo the sheer number of choices. Even perfectly written, 18 tools is too many to select from reliably.
  • B is wrong because few-shot examples add token overhead on every request without reducing the number of options the model is choosing between.
  • C is wrong because “any” forces a call without helping the model pick correctly from 18. It removes the option of answering in text, which makes matters worse.

A subagent currently has access to fetch_url, which can fetch any URL from any domain. What is the correct least-privilege improvement?

  • A. Add URL validation to the system prompt to restrict what the agent fetches.
  • B. Replace fetch_url with load_document, which validates document URLs and rejects everything else.
  • C. Keep fetch_url as it is and add request logging so the team can monitor everything the agent fetches.
  • D. Remove fetch_url entirely and route every fetch through the coordinator, which then owns all outbound requests.
Answer & explanation

Correct: B

  • B is correct because swapping a generic tool for a constrained one puts least privilege into the interface itself. load_document accepts document URLs, refuses the rest, and reads unambiguously as a result.
  • A is wrong because system prompt instructions are advisory. The model can still call fetch_url with any URL it likes, so the constraint has to live in the tool.
  • C is wrong because logging catches misuse after it has happened. Preventing it in the tool is preferable to detecting it in a dashboard.
  • D is wrong because routing every fetch through the coordinator adds a round trip to a common operation. A constrained local tool gets the same safety without the latency.

An extraction pipeline handles invoices, receipts, and contracts. The document type is unknown at input. You need guaranteed structured output from the correct schema. Which tool_choice should you use?

  • A. tool_choice: { type: “auto” }, since the model will recognise the document type without being forced.
  • B. tool_choice: { type: “tool”, name: “extract_invoice” }, forcing the invoice schema on every document.
  • C. tool_choice: { type: “any” }, which guarantees a tool call while the model picks the schema.
  • D. Process every document through all three extraction tools in turn, then keep whichever result looks most complete.
Answer & explanation

Correct: C

  • C is correct because “any” guarantees a tool call, which is what makes the output structured, while leaving the choice of schema to the model. That combination is precisely what “any” exists for.
  • A is wrong because “auto” permits a conversational reply instead of a tool call. Where structured output is required, that is not a guarantee.
  • B is wrong because forcing a tool assumes a document type that is unknown by definition. An invoice extractor cannot correctly process a receipt or a contract.
  • D is wrong because running all three burns API calls and context on two results that will be discarded. One call with “any” settles it.