Cartograph: Federated Tool Discovery with Operator-Attested Retrieval for AI Agents
Justice Owusu Agyemang, Michael Agyare, Kwame Opuni-Boachie Obour Agyekum, Kwame Agyeman-Prempeh Agyekum, Francisca Adoma Acheampong, Jerry John Kponyo
Abstract
The Model Context Protocol (MCP) enables AI agents to discover and call tools, but loading every definition becomes expensive as connected catalogs grow. We present Cartograph, a federated MCP proxy that changes agent-visible tool discovery from catalog traversal to progressive disclosure. Cartograph combines three mechanisms: (1) operator-attested capability cards, Ed25519-signed descriptions generated under the deploying operator's control rather than ranked publisher copy; (2) Rift, a three-layer confusable-cluster analysis comprising density clustering, query-margin analysis, and token diagnosis; and (3) two-stage retrieval, which ranks servers before tools. On a 22-server, 374-tool deployment, Cartograph exposes three proxy tools instead of 374 definitions. A 49-query author-constructed benchmark yields R@5 of 0.816, compared with 0.592 for a Jaccard keyword baseline, while a measured top-5 discovery exchange uses 475 tokens rather than 42,450 under the stated full-catalog accounting. Rift identifies 49 confusable clusters, including four HIGH-risk clusters in bootstrap-generated cards. An exploratory comparison of 119 LLM-generated descriptions removes the observed zero-distance cluster but shows that mixing card-generation regimes can reduce R@5. Gateway measurements over ten trials add 5ms mean latency (0.8%) relative to direct stdio MCP calls. Cartograph is complementary to code-execution approaches: it controls which tool descriptions are surfaced and records the provenance of the descriptions used for ranking for each query.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
Related papers
Failure Broadens, Success Sharpens: Continual Adaptation of Tool-Use Agents Across Diverse Tasks with Dual-Polarity Memory
Shared title terminologycs.CLTianmai M. Zhang, Hoda Shajari, Amr Hendy et al.
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.
SFT or RL for Tool-Calling Agents? A Controlled Study Across Data, Method, and Scale
Shared title terminologycs.CLMd Tahmid Rahman Laskar, Xue-Yong Fu, Shashi Bhushan TN
Spurious Tool Use: When RL Agents Learn the Wrong Reason to Act
Shared title terminologycs.CLYiwei Yang, Haoxiang Zhang, Bingbing Wen et al.
Salesforce Koa: An Enterprise Language Model for Agentic Tool Use
Shared title terminologycs.CLZixiang Chen, Sufeng Niu, Yingchi Liu et al.
Retrieval-Driven Memory Reconsolidation for Long-Term LLM Agents
Shared title terminologycs.CLYuanyi Song, Yukai Wang, Xinbei Ma et al.