Manuscript Offprint

arXiv:2610.41905

Completeness and Cost of Retrieval Structures for Multi-Tool Requests in LLM Agents

Shuyang Zhang

Abstract

An agent that must call several tools to fulfill a request fails when the tool retriever omits any one of them, yet tool retrievers are mostly built and evaluated on queries requiring a single tool. We compare representatives of six retrieval structures (flat lexical and dense retrieval, LLM query decomposition, LLM-navigated hierarchies, server-then-tool matching, dependency graphs, and trained set-level retrievers) across two multi-tool testbeds: 345 AppWorld queries with expert dependency labels and 103 MCP-Bench tasks over 257 MCP tools. We measure completeness@k, the share of queries whose entire required tool set appears in the top k, alongside the LLM calls, tokens, and latency that each structure incurs at retrieval time. A motivating analysis on all 7,961 ToolRet queries shows that aggregate completeness mixes two regimes: completeness at 10 is .58 to .67 on single-target queries and .08 to .17 on queries with four or more targets, and the ordering of retrievers on single-target queries reverses on multi-target ones. Across the two testbeds, none of the compared structures 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. The two structures that do better incur different costs: a set-level retriever trained on 75 to 90 in-domain queries reaches .33 on AppWorld and .58 on MCP-Bench with no LLM calls, while an LLM-navigated hierarchy reaches .30 and .40 with a median of 31 to 38 LLM calls and about five minutes per query. Their failure modes also differ: the trained retriever mostly ranks the missing tools just below the cutoff, whereas the hierarchy finds the target API and stops before collecting its prerequisites. In a downstream check with the official AppWorld agent, tasks with a complete retrieved set succeeded 21 of 21 times, whereas incomplete ones succeeded 2 of 39 times.

1 Introduction

Tool-using language-model agents increasingly work with tool catalogs that are too large, or too costly, to place in the prompt at every step, so a retriever decides which tools the agent sees [1, 2, 3]. Many requests need several tools, often because one call produces an identifier or credential that another call consumes [4, 5]. For such a request, the retriever has to return the whole required set: if one required tool is missing, the agent cannot carry out that step. This is why COLT framed tool retrieval in terms of completeness [6] and why a recent evaluation of deployed tool search reports completeness alongside recall [7]. We ask which retrieval structures return complete tool sets for multi-tool requests, what each spends at retrieval time to do so, and how each fails when it does not.

Existing evaluations do not answer this question, for two reasons. First, tool-retrieval benchmarks are dominated by single-tool queries and report aggregate scores. On ToolRet [8], 55% of the

7,961 queries have one target tool, and for those queries completeness is simply a hit. Second, the structures proposed for multi-tool retrieval have been evaluated on different data against different baselines. Flat dense retrievers [8], LLM query decomposition and planning [9, 10], LLM-navigated category hierarchies [11], server-then-tool matching [3], dependency graphs over tools or skills [12, 13] and trained set-level retrievers [6, 14] rest on different assumptions about how a multi-tool need is found, and they spend different resources: labelled training queries, LLM calls at query time, or graph construction. Zhang et al. [10] compared flat retrieval with an LLM plan-then-retrieve paradigm on ToolBench and found that which paradigm is better depends on whether a query needs one tool or several. It remains open whether this dependence extends to the other families, which of them reach complete sets on requests with dependencies between tools, and at what cost.

We compare representatives of six retrieval structures on two multi-tool testbeds: 345 AppWorld [5] queries with the expert parameter-level dependency labels of In-N-Out [4], each needing at least two APIs, and 103 MCP-Bench [15] tasks over 257 tools of real MCP servers, 97 of which need several tools. Each method is run as its authors designed it, the trained set-level methods on each testbed's training queries and the others without training, with one embedding model shared where a method allows it and one LLM for every LLM step. We measure completeness@k and recall@k, the LLM calls, tokens and latency each method spends per query, and, for every incomplete query, which required tools were missed: the target the request asks for, a prerequisite whose consumer was retrieved, or a tool ranked just below the cutoff. Before the main comparison, we use all 7,961 ToolRet queries to show how much an aggregate score conceals; after it, we run the official AppWorld agent on 60 tasks to check whether completeness relates to task success.

The study yields four findings.

  1. Aggregate completeness on ToolRet mixes two regimes. Completeness at 10 is .58 to .67 on single-target queries and .08 to .17 on queries with four or more targets, while recall at 10 on multi-target queries stays between .41 and .61. bge-base, best or tied for best on single-target queries, is overtaken on queries with two or three targets by both decomposition and COLT's released retriever. This agrees with Zhang et al. [10] and extends their observation to completeness, to queries with up to four or more targets and to trained and graph-based retrievers.

  2. On AppWorld and MCP-Bench, flat lexical and dense retrieval, query decomposition, server-then-tool matching and dependency-graph retrieval complete at most 9.6% of AppWorld queries and at most 36% of MCP-Bench tasks at k = 16. Two structures do better, by spending different resources. COLT, trained on 75 to 90 labelled queries from the target pool, reaches completeness at 16 of .328 and .583 without any LLM call at query time. AnyTool's LLM-navigated hierarchy needs no training and reaches .301 and .398, with a median of 31 and 38 LLM calls and about 300 seconds per query. The two are statistically indistinguishable on AppWorld; COLT leads on MCP-Bench.

  3. The structures fail in different ways. On AppWorld, 58% of the tools COLT misses are ranked between 17 and 50. AnyTool usually retrieves the API that the request names but not the APIs that produce its inputs, which is the primary cause in 162 of its 241 incomplete queries. Flat and graph retrievers and the simplified HYSET mostly miss the target API itself.

  4. With the official AppWorld agent, exposing COLT's top 16 APIs led to success on 21 of 21 tasks where that set was complete and on 2 of 39 where it was not, while exposing the gold API set succeeded on 26 of those 39 incomplete tasks.

References (27)