arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.22695

Enrich-Retrieve-Rank: Scaling Capability Discovery Beyond In-Context Routing

Nazib Sorathiya, Daniel Zhang, Bardiya Akhbari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Agent ecosystems now include thousands of MATS components (Models, Agents, Tools, and Skills), yet their discovery still relies on in-context routing. These systems read a registry (names, hints, or descriptions, as context budget permits), pick a candidate, invoke it, and retry on failure. This pattern degrades with scale, and registries are growing fast. We recast capability discovery as search over a registry by defining an offline enrichment step that turns sparse metadata into searchable profiles, and an online retrieve-then-rank pipeline that returns a ranked shortlist without invoking any candidates online. We show that from N = 10 to 7,278 capabilities, in-context routing's top-1 accuracy (Match@1) collapses (0.85 → 0.12), while retrieve-then-rank degrades more gently (0.81 → 0.39) because its reranker still ranks the right capability first 0.70–0.87 of the time once retrieval finds it. In the Nova Micro sweep, the crossover is around N = 500. We compare against two in-context baselines. Full-Ctx puts the whole registry in the prompt and asks the LLM to pick. Search&Pick gives the LLM a search tool to narrow candidates before it picks. At full scale the pipeline leads Search&Pick by 6.5 percentage points (pp) on Match@1 at about half the cost, and reduces the cost 70× versus Full-Ctx. We use the same configuration (same enrichment, retriever, and scorer weights) across agent, tool, and skill registries. The pipeline runs in production as the default capability-discovery layer of a large-scale multi-agent platform.

1 Introduction

Recent agentic systems (Anthropic, 2025; Cursor, 2024; LangChain, 2024; Amazon Web Services, 2024) expose registries of thousands of components. Our production registry unifies all MATS components under one schema and already exceeds 500 entries in every MATS type; the largest benchmark we study holds 7,278 tools. At that scale an orchestrator cannot place every candidate in context, so choosing what to call requires first narrowing what to consider.

Today’s systems discover capabilities by in-context routing. The large language model (LLM) sees a representation of the registry (tool names, one-line hints, or full descriptions as budget permits), picks a candidate, invokes it, and retries on failure. Some systems truncate alphabetically; others use a regular expression tool to narrow candidates before picking. All couple cost and accuracy to registry size. Every wrong invocation costs tokens and latency, and may call an untrusted endpoint just to learn what it does.

We frame capability discovery as web search over a capability registry rather than the open web. A search engine does not make users click through every indexed page, and an orchestrator should not present every capability and rely on the LLM to pick. We retrieve ranked candidates without invoking them and return a shortlist. The advantage over in-context routing widens with registry size, so it matters most where the field is heading.

We decompose end-to-end performance into retrieval recall and reranker conditional accuracy. The reranker reaches near-peak accuracy at modest registry sizes and stays flat beyond that, so at larger scales most misses originate in retrieval. At full scale, our pipeline leads Search&Pick in match accuracy and uses half the tokens.

We apply one pipeline to agent, tool, and skill registries under a single configuration and deploy it in production as the capability-discovery layer for a multi-agent platform. The pipeline includes offline enrichment (an LLM rewrites sparse metadata into rich profiles once at registration time, not per query). Its value scales with metadata sparsity. On well-documented public data the effect is neutral-to-negative ( §4.3§4.3). We include it as a production design choice, not a source of benchmark gains.

OFFLINE · ONCE PER CAPABILITY

ONLINE · ONCE PER QUERY

Figure

Figure 1: The Enrich-Retrieve-Rank pipeline. Phase 1 transforms sparse capability metadata into rich profiles. Phase 2 retrieves top-k candidates from the enriched index. Phase 3 ranks with a single LLM call. The entire online path requires one LLM call at bounded latency. Dashed boxes are data, and solid boxes are computation.

References (1)

  • $N \leq 25$ retrieval is identity and Ours $\approx$ Full-Ctx; $N \geq 5,000$ Ours is bottlenecked by BM25 recall, not its own design; in between, Ours leads by 7–17 pp