Tool Retrieval Recall Is High. Why Do Agents Still Fail?
Evaluate a tool retriever on whole tool sets, not on single tools. completeness@k treats a full set as the pass condition, and the ranking you measured on single-target queries reverses once a request needs four or more tools.
On this page
Pool 7,961 queries into one completeness score and it fails to describe either half: .58 to .67 on single-target queries, .08 to .17 for four or more tools. Most people check recall@k. Is the right tool in the top ten? That question holds when a request needs one tool. It collapses when a request needs five, because four out of five correct is still a failed task. The material below comes from a paper that compares six retrieval structures on two testbeds, 345 AppWorld queries and 103 MCP-Bench tasks.[1]
Miss one tool and recall stops mattering
An agent that has to book a flight, check a calendar, and file an expense may call three tools in sequence, or five, or seven. Miss one and the chain breaks. This is not accuracy dropping a few points. It is a failed task. Most people evaluate a retriever by its ranking: which position the right tool lands in, whether it appears in the top ten. That lens works on single-tool queries, because there “found” and “found all” are the same event.
completeness@k asks a different question: does the entire required set appear in the top k? Yes scores 1. No scores 0. There is no partial credit, and there is no discount for landing near the cutoff. The definition is harsh, and harsh in a useful way. Retrievers with respectable average hit rates fall over, because few of them ever collect the whole set at once.
Here is an arithmetic sketch of my own, not a number from the paper. Say a request needs five tools, and each tool independently has a 0.9 chance of appearing in the top k. The chance that all five appear is 0.9 to the fifth power, about 0.59. Four tools gives 0.66, and seven gives 0.48. Every tool looks fine alone; the set lands under sixty percent. Independence is doing real work in that calculation, and in practice tools correlate, so the true number moves, in a direction set by how much the tools overlap.
So between a high recall score and a runnable task sits one multiplication.
Six structures, two testbeds, three cost items
The paper compares six retrieval structures, and the spread is wide.
- Flat lexical and dense retrieval: one shot, return, done.
- LLM query decomposition: split the request into sub-queries, then search each.
- LLM-navigated hierarchies: the model walks down level by level and picks a branch.
- Server-then-tool matching: filter servers first, then choose the specific endpoint.
- Dependency graphs: draw the ordering between tools, then follow the graph.
- Trained set-level retrievers: train on a small in-domain sample, emit the whole set at once.
The two testbeds do different jobs. The 345 AppWorld queries carry expert labels for tool dependencies; the 103 MCP-Bench tasks sit across 257 MCP tools. The first set answers “who depends on whom”. The second answers “does the set still come together once the pool gets big”. Completeness is not the only measure. The paper also records LLM calls, tokens, and latency incurred at retrieval time. Those three are not appendix details; together with completeness they decide whether a structure can ship. A retriever that spends five minutes per query stays in offline evaluation, however high its completeness lands.[1]
The motivating analysis is where the floor drops out. Pool all 7,961 ToolRet queries and completeness looks like a middling number. Split by target count and the picture divides: single-target queries score .58 to .67 at k=10, while queries with four or more targets score .08 to .17. One metric, two worlds. The ranking is worse than the level: a retriever that wins on single-target queries does not necessarily win on multi-target ones, and the paper reports that the order reverses.
A reversal means a selection decision does not travel. The winner from your single-tool A/B test can lose in a multi-tool setting, and lose while every single-point metric still looks healthy. No amount of tuning fixes that, because the metric was pointed at the wrong object.
The main results are colder still. Across both testbeds, no structure that is untrained on the testbed and makes at most one LLM call per query completes more than 10% of AppWorld queries at k=16. Ten percent of 345 is 34.5, so that ceiling is 34 requests. The claim has a condition attached: it describes an intersection, not all six structures at once. How many LLM calls decomposition makes per query is not stated in the abstract, so I cannot place it inside that comparison.
Three signals that fit on a dashboard
Compress the above into one table and the two kinds of “better” turn out to carry two kinds of price.
| Structure | Trained in-domain | LLM calls per query | AppWorld completeness | MCP-Bench completeness | Dominant failure |
|---|---|---|---|---|---|
| Set-level retriever | Yes, 75 to 90 queries | 0 | .33 | .58 | Missing tool ranks just below the cutoff |
| LLM-navigated hierarchy | Not stated | Median 31 to 38 | .30 | .40 | Finds the target API, stops before prerequisites |
| Untrained, at most one call | No | At most 1 | Under 10% (k=16) | Not reported | Not broken out |
Two cells in that table are blank, and the blanks matter. The abstract does not state which k the .33 and .58 figures belong to, so I will not supply one. It also does not give per-structure completeness for the group that stayed under 10%. Blank is blank; do not fill it from memory while reading.
The failure modes deserve their own column. The trained retriever puts the missing tool just under the cutoff, close enough that a model can see the name, not close enough to enter the top k. The hierarchy does not rank badly; it finds the target API and stops, never looping back for the prerequisites that API needs. Two errors, two repairs. Lumped together, they produce advice like “raise k”, which helps with exactly one of them.
- Report by target count. Single, two to three, and four-plus deserve separate rows; a pooled average smears .08 and .67 into something in the .3s, which looks acceptable and describes neither group.
- Report retrieval cost, not just accuracy. A median of 31 to 38 calls and about five minutes per query means 345 queries take 1,725 minutes, close to 29 hours; that number decides whether a structure can run online.
- Count failures by kind, “one rank short” versus “stopped early”. The first responds to ranking and to k, the second needs a different traversal.
Five steps, starting from your own logs
Half of this is usable without rerunning any experiment. If you have agent call logs, you have the distribution of target counts.
- Count targets first. Bucket recent requests by how many tools they need, then look at the share above four. If it reaches thirty percent, your single-tool metric has little explanatory power left.
- Change the metric. Replace “is the right tool in the top ten” with “is the set complete in the top ten”, one 0 or 1 per request, no averaging over individual tools.
- Report buckets, not a total. Write single-target and multi-target rows separately, and put k next to both; “completeness 0.4” with no k is not a report.
- Put cost in the same table. Use medians for calls, tokens, and latency, because with queries that take five minutes the mean gets dragged down by a few short ones.
- Repair against failure samples. If the missing tool sits near the cutoff, adjust ranking or raise k. If the gap is a prerequisite, change how the retriever traverses, since raising k will not help.
Step five is the fork. On one dashboard both failures read as “incomplete”, and the repairs run in opposite directions. Raising k works on the first and barely touches the second, because the hierarchy is not failing to rank, it is quitting early. There is also a cheap starting point: 75 to 90 in-domain queries. A set-level retriever trained on that scale reaches .33 on AppWorld and .58 on MCP-Bench with no LLM calls at retrieval time. That band is 22% to 26% of 345, so the ask is a small labelled sample, not a full relabelling pass.
Where this metric stops helping
The limits are worth naming. First, both testbeds are small: 345 queries and 103 tasks, and 257 tools sounds like a lot until you notice it is the ceiling of this material, not of tool pools in general; what happens an order of magnitude larger is untested here. Second, completeness@k is binary, so once the set is complete it does not care about wrong ordering, wrong arguments, or a stale tool version. Third, the metric breaks down when the tool pool grows and shrinks at runtime, when tool descriptions are vague, or when the agent must carry tool state across sessions; in those settings it no longer holds, or at least stops being enough.
One more point concerns the downstream check. Tasks with a complete retrieved set succeeded 21 out of 21 times; incomplete ones succeeded 2 out of 39, which is 2 divided by 39, about 5.1%. That contrast is stark, and it rests on 60 tasks, and it is correlation rather than causation: easy tasks could produce both the complete set and the success. Treat it as a strong signal, not as a law.
So the next time someone offers a recall number as proof that retrieval is fine, one question is enough: is that the average hit rate per tool, or the share of requests where the whole set arrived?
