Agent-as-a-Graph: Knowledge Graph-Based Tool and Agent Retrieval for LLM Multi-Agent Systems

📅 2025-11-22
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
In existing large language model–based multi-agent systems, agent and tool capabilities are often coarsely modeled via single-agent description matching, leading to inaccurate agent selection. This paper proposes Agent-as-a-Graph, a retrieval method that models agents and tools as nodes and edges in a heterogeneous knowledge graph. It jointly leverages vector-based semantic retrieval and graph-structured traversal, augmented by a type-weighted reciprocal rank fusion (wRRF) mechanism for fine-grained, capability-aware agent discovery. Evaluated on LiveMCPBenchmark, our approach improves joint tool–agent retrieval performance, achieving +14.9% Recall@5 and +14.6% nDCG@5 over baselines; wRRF further contributes a +2.4% gain over standard RRF. The core contribution is the first formulation of agent capabilities as a structured, reasoning-enabled knowledge graph—enabling synergistic optimization of semantic retrieval and topological reasoning.

Technology Category

Application Category

📝 Abstract
Recent advances in Large Language Model Multi-Agent Systems enable scalable orchestration and retrieval of specialized, parallelized subagents, each equipped with hundreds or thousands of Model Context Protocol (MCP) servers and tools. However, existing agent, MCP, and retrieval methods typically match queries against a single agent description, obscuring fine-grained tool capabilities of each agent, resulting in suboptimal agent selection. We introduce Agent-as-a-Graph retrieval, a knowledge graph retrieval augmented generation approach that represents both tools and their parent agents as nodes and edges in a knowledge graph. During retrieval, i) relevant agents and tool nodes are first retrieved through vector search, ii) we apply a type-specific weighted reciprocal rank fusion (wRRF) for reranking tools and agents, and iii) parent agents are traversed in the knowledge graph for the final set of agents. We evaluate Agent-as-a-Graph on the LiveMCPBenchmark, achieving 14.9% and 14.6% improvements in Recall@5 and nDCG@5 over prior state-of-the-art retrievers, and 2.4% improvements in wRRF optimizations.
Problem

Research questions and friction points this paper is trying to address.

Existing agent retrieval methods obscure fine-grained tool capabilities
Current approaches match queries against single agent descriptions
Suboptimal agent selection results from limited tool visibility
Innovation

Methods, ideas, or system contributions that make the work stand out.

Knowledge graph represents tools and agents as nodes
Vector search retrieves relevant agents and tool nodes
Weighted reciprocal rank fusion reranks tools and agents
🔎 Similar Papers
No similar papers found.
F
Faheem Nizar
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.
E
Elias Lumer
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.
Anmol Gulati
Anmol Gulati
Researcher, Google Deepmind
P
Pradeep Honaganahalli Basavaraju
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.
V
Vamse Kumar Subbiah
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.