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

Faheem Nizar, Elias Lumer, Anmol Gulati, Pradeep Honaganahalli Basavaraju, Vamse Kumar Subbiah
11/22/2025
cs.CL

No official code found. Best implementation: ashwinbaldawa/agent-as-a-graph (1 star, MIT, last commit 2026-02-14).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Production-grade implementation of Agent-as-a-Graph (arXiv:2511.18194) — Knowledge graph-based multi-agent routing using semantic search, wRRF reranking, and graph traversal. Built for healthcare domain with multi-tenant isolation, JWT auth, and feedback loop.

10PythonFeb 14, 20268 months agoMIT

Similar Papers

Cite this paper

@article{nizar2025agentasagraph,
  title  = {Agent-as-a-Graph: Knowledge Graph-Based Tool and Agent Retrieval for LLM Multi-Agent Systems},
  author = {Faheem Nizar and Elias Lumer and Anmol Gulati and Pradeep Honaganahalli Basavaraju and Vamse Kumar Subbiah},
  year   = {2025},
  eprint = {2511.18194},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.18194v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.18194.svg)](https://codeofpaper.com/paper/2511.18194)

Discussion