Metraipolis › archive › dc_3e01154f950a
Plan or Retrieve First? A Scale Study of Tool Discovery Architectures — arXiv:2610.19068
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.19068
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T20:00:38.907Z
- SHA-256 of the archived text
f97c979b79ece837d9f2576ae52862fc5f2738569b01ec3175184f7b99438f7c- Stable URL of this page
https://metraipolis.com/documento/dc_3e01154f950a
How to cite
Plan or Retrieve First? A Scale Study of Tool Discovery Architectures — arXiv:2610.19068 — arXiv (en), https://arxiv.org/abs/2610.19068 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_3e01154f950a (Metraipolis archive dc_3e01154f950a, sha256 f97c979b79ece837d9f2576ae52862fc5f2738569b01ec3175184f7b99438f7c)
BibTeX
@misc{dc3e01154f950a,
title = {Plan or Retrieve First? A Scale Study of Tool Discovery Architectures — arXiv:2610.19068},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.19068},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_3e01154f950a; sha256 f97c979b79ece837d9f2576ae52862fc5f2738569b01ec3175184f7b99438f7c},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.19068. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Tool-augmented LLM agents discover relevant APIs from large registries before planning execution, yet finite context windows prohibit injecting all tool definitions into a single prompt. The dominant approach, which we term Retrieve-then-Plan (RtP), embeds the user query and retrieves similar tools via approximate nearest-neighbor search. We study an alternative Plan-then-Retrieve (PtR) paradigm in which the LLM first generates Abstract Tool Stubs (hypothesized function signatures describing needed capabilities) which then serve as retrieval queries against the registry. Evaluating on ToolBench (46,984 unique API endpoints, 50 categories) across single-tool (G1), intra-category multi-tool (G2), and cross-category multi-tool (G3) query subsets, we find a clear complexity-dependent crossover: RtP outperforms PtR on single-tool queries while PtR outperforms RtP on multi-tool queries. This crossover holds at every retrieval budget (k=1 to 20), is robust across registry sizes from 1k to 47k APIs, and is consistent across model families (Gemini 2.5 Flash and gpt-oss-120b). We characterize a stub-hallucination failure mode (the LLM invents plausible but non-existent API names) that acts as a double-edged sword: on simple queries PtR's stubs abstract away proper-noun signals that RtP matches directly, yet on complex queries the same mechanism decomposes multi-faceted intent into functional sub-needs. We further analyze token overhead and show that PtR's extra discovery call roughly doubles inference cost, which pays off on multi-tool queries but hurts on single-tool ones, motivating complexity-adaptive routing as a practical direction, one that can be driven by a zero-cost signal already present in the pipeline (RtP's top-1 retrieval score). Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI) ; Information Retrieval (cs.IR). Pagina del lavoro: https://arxiv.org/abs/2610.19068 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-15T19:35:48.184Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).