Manuscript Offprint

arXiv:2610.21113

SSR: Structural Signal Retriever for Scalable Agent Discovery in LLM-Orchestrated Multi-Agent Systems

Giancarlo Maldonado Cárdenas, Carlos A. Astudillo, Nelson L. S. da Fonseca

Giancarlo Maldonado Cárdenas, Carlos A. Astudillo, and Nelson L. S. da Fonseca

Institute of Computing – State University of Campinas, Brazil

E-mails: giancarlo@lrc.ic.unicamp.br, castudillo@unicamp.br, and nfonseca@ic.unicamp.br

Abstract—Large-scale multi-agent ecosystems require mechanisms for discovering suitable agents without exposing entire registries to a large language model (LLM) orchestrator. The challenge is not only to retrieve relevant Agent Cards from a growing registry, but also to maintain a compact candidate context, since each additional candidate increases prompt size, inference cost, latency, and the risk of exceeding the model context window. We formulate this problem as candidate-context scalability and propose the Structural Signal Retriever (SSR), our deterministic and training-free retrieval method designed for Agent Card discovery. SSR derives structural lexical signals from capability-bearing Agent Card fields, weights them using inverse document frequency (IDF), and uses an Inverted Signal Index (ISI) for selective candidate scoring. We evaluate SSR using a synthetic agent benchmark, a public MS MARCO adaptation, and end-to-end LLM orchestration. At 1,000 agents, SSR reduces LLM input by 98.8% and orchestration latency by 70.9% relative to full-catalog orchestration. On MS MARCO, IDF improves retrieval effectiveness within the structural representation, while the ISI preserves retrieval effectiveness and reduces explicitly scored passages by 96.8%. End-to-end experiments show that candidate pre-selection maintains a compact candidate context as registry size grows and avoids the operational failures observed with full-catalog orchestration. These results support SSR as an Agent-Card-native, traceable retrieval mechanism for candidate-context scalability.

Index Terms—Agent discovery, agent retrieval, multi-agent systems, LLM orchestration, structural retrieval, inverted index, MS MARCO.

I. INTRODUCTION

Recent advances in large language models (LLMs), interoperable agent protocols, and machine-readable capability descriptions are enabling multi-agent ecosystems in which autonomous agents can be dynamically discovered and orchestrated [1], [2]. Protocols such as the Model Context Protocol (MCP) and Agent2Agent (A2A) expose structured descriptions of tools and agents [3], [4]. In particular, A2A defines an Agent Card as a machine-readable description of an agent's identity, capabilities, skills, interfaces, and related metadata [4]. We use Agent Card throughout this paper to denote such structured capability descriptions.

A straightforward orchestration strategy is to present every available Agent Card to an LLM and ask it to select the most suitable agent. However, this full-catalog approach directly couples registry size to the amount of information presented to the LLM orchestrator. As the registry grows, more Agent Cards must be incorporated into the prompt, increasing context consumption, inference cost, and latency, while eventually reaching practical model or API limits. Related context-scaling concerns have motivated retrieval and candidate filtering in large tool collections [5]–[7].

Candidate pre-selection itself is therefore not new. Existing work has explored large-scale tool retrieval, context-aware filtering, learned routing, and relational tool-agent retrieval [5], [7]–[10]. Our focus is complementary: scalable agent discovery must account not only for retrieving relevant Agent Cards from a growing registry, but also for controlling the amount of candidate information ultimately presented to the LLM orchestrator. We formulate this systems problem as candidate-context scalability: registry-scale retrieval should remain operationally independent of the compact candidate context subsequently presented to the LLM. Under this formulation, retrieval may operate over the complete registry, while a maximum candidate budget K controls the number of top-ranked Agent Cards forwarded to the LLM orchestrator. This separation makes retrieval coverage, retrieval computation, and orchestration context distinct and independently measurable components of the discovery pipeline.

To address this problem, we propose the Structural Signal Retriever (SSR), our deterministic and training-free retrieval method designed specifically for Agent Card discovery. SSR constructs an explicit retrieval representation directly from capability-bearing fields already present in Agent Cards. It deterministically derives structural lexical signals from these fields, weights matched signals using inverse document frequency (IDF), and uses an Inverted Signal Index (ISI) to restrict scoring to Agent Cards that share structural evidence with the user query. The resulting candidates are ranked and a compact pool of up to K top-ranked Agent Cards is presented to the LLM orchestrator for final agent selection. This design decouples the growth of the agent registry from the amount of candidate information processed by the LLM while preserving a direct correspondence between each retrieval score and the explicit Agent Card signals that produced it.

The methodological contribution of SSR does not lie in IDF weighting, inverted indexing, or candidate pre-selection individually. Rather, SSR integrates these established retrieval mechanisms into a dedicated pre-orchestration retrieval layer for Agent Card discovery in LLM-based multi-agent infras-structures. Within this layer, capability-bearing Agent Card fields provide explicit structural signals for candidate generation and ranking, while a maximum candidate budget controls the compact candidate context subsequently presented to the LLM orchestrator.

To distinguish improvements arising from candidate pre-selection in general from properties specific to SSR, the end-to-end evaluation also instantiates the same candidate-selection architecture using the Best Matching 25 (BM25) ranking function [11]. SSR and BM25 operate under the same maximum candidate budget and the same LLM arbitration procedure. This controlled comparison allows the effects of maintaining a compact candidate context to be separated from differences attributable to the retrieval mechanism itself.

The evaluation addresses three research questions:

• RQ1: How does full-catalog LLM orchestration scale with registry size, and to what extent can SSR-based candidate pre-selection reduce its operational overhead?

• RQ2: How effective and efficient is the SSR retrieval mechanism on naturally occurring text, and what are the contributions of IDF weighting and the ISI?

• RQ3: How does retrieval-based candidate pre-selection affect end-to-end agent selection, candidate context, cost, latency, and operational reliability as registry size grows, and how does SSR compare with BM25 under the same maximum candidate budget?

The main contributions of this work are:

• We formulate scalable LLM-based agent discovery from a candidate-context scalability perspective, explicitly separating registry-scale retrieval, retrieval computation, and the compact candidate context presented to the LLM orchestrator.

• We propose SSR, a deterministic and training-free retrieval method that integrates field-derived structural signals, IDF-weighted matching, and selective inverted indexing into a dedicated pre-orchestration retrieval layer for Agent Card discovery. This layer produces a compact pool of top-ranked Agent Cards while preserving explicit score traceability.

• We introduce SSR-AgentBench, a reproducible synthetic benchmark containing 1,000 procedurally generated Agent Cards and 250 natural-language discovery queries with designated target Agent Cards for controlled registry-scaling experiments.

• We provide a systems-level characterization of candidate-context scalability through controlled registry growth, public-corpus retrieval, and end-to-end LLM arbitration. The evaluation separates general effects of candidate pre-selection from SSR-specific retrieval behavior while measuring retrieval coverage, candidate context, prompt tokens, estimated cost, latency, reliability, and end-to-end selection effectiveness.

References (36)