Cartograph:用于AI代理的联邦工具发现与运营商认证检索
摘要
Cartograph是一个联邦MCP代理,它通过使用运营商认证的能力卡片和三层分析来增强AI代理的工具发现,从而减少token使用并提升检索准确率。
arXiv:2609.30293v1 Announce Type: new
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 $O(n)$ catalog traversal to $O(k)$ 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.
查看缓存全文
缓存时间: 2026/09/28 09:34
# Federated Tool Discovery withOperator-Attested Retrieval for AI Agents
Source: [https://arxiv.org/html/2609.30293](https://arxiv.org/html/2609.30293)
## Cartograph: Federated Tool Discovery with Operator\-Attested Retrieval for AI Agents
Justice Owusu AgyemangAffiliation:VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, GhanaAffiliation:Quantum and Assistive Technologies Lab, Kwame Nkrumah University of Science and Technology, Kumasi, GhanaKwame Opuni\-Boachie Obour AgyekumAffiliation:VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, GhanaKwame Agyeman\-Prempeh AgyekumAffiliation:VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, GhanaFrancisca Adoma AcheampongAffiliation:VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, GhanaJerry John KponyoAffiliation:Quantum and Assistive Technologies Lab, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana
###### 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 fromO\(n\)O\(n\)catalog traversal toO\(k\)O\(k\)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\.
###### Keywords:
MCP tool discovery retrieval agent tools federation capability cards trust\.
## 1Introduction
THE Model Context Protocol \(MCP\)\[[10](https://arxiv.org/html/2609.30293#bib.bib1)\]standardized how AI agents discover and call tools\. The official MCP Registry provides a centralized metadata repository and discovery API for publicly accessible servers\[[11](https://arxiv.org/html/2609.30293#bib.bib2)\]\. Yet a host with a large connected catalog still needs a policy for deciding which detailed tool definitions to surface for a particular task\.
Consider a deployment withm=22m=22MCP servers hostingn=374n=374tools\. A host that returns the completetools/listresponse exposes approximately 38,250 tokens of JSON Schema definitions before the agent addresses a request\. Code execution with MCP promotes progressive disclosure and local processing to reduce this cost\[[6](https://arxiv.org/html/2609.30293#bib.bib3)\]\. Cartograph is complementary: it supplies a proxy\-level retrieval and provenance layer for selecting definitions from a federated catalog\.
Beyond scale, there is a trust problem\. In a federated deployment, tool publishers write their own descriptions\. A malicious or overconfident publisher can craft descriptions engineered to win semantic retrieval, directing agents to tools that are inappropriate or dangerous for the task\. The Google A2A protocol\[[1](https://arxiv.org/html/2609.30293#bib.bib4)\]addresses agent\-to\-agent discovery and task delegation but does not solve publisher self\-description trust in tool\-level retrieval\. No existing mechanism verifies that a publisher’s self\-description accurately represents what a tool does\.
Cartograph addresses both problems by making tool discovery arankingproblem instead of atraversalproblem\. Rather than loadingnntool definitions, the agent sees 3:discover,status, andcall\. A natural\-language task description is embedded and matched against a retrieval index ofoperator\-attested capability cards—language\-neutral, Ed25519\-signed descriptions where the deploying operator’s LLM re\-describes every tool\. The agent receives the top\-kktools with full schemas and usage examples\.
This paper presents the design, implementation, and evaluation of Cartograph\. We deploy it as the sole MCP proxy across 22 production servers and measure four dimensions: token efficiency, retrieval quality, confusable\-cluster detection, and Gateway overhead\. Our contributions are:
1. 1\.A formal model of federated tool discoveryas a two\-stage ranking problem over signed, operator\-attested capability cards, with anO\(k\)O\(k\)agent\-visible token bound \(Section[3](https://arxiv.org/html/2609.30293#S3)\)\.
2. 2\.A working federated MCP proxythat collapses 374 tool definitions to 3 proxy tools, using 98\.8% fewer tokens under our stated full\-catalog accounting while obtainingR@5=0\.816\\text\{R@5\}=0\.816on a 49\-query author\-constructed benchmark\.
3. 3\.Rift, a three\-layer confusable\-cluster detector with formal margin\-analysis formulation evaluated on 374 tools, detecting 49 clusters \(4 HIGH\-risk\)\. Ablation confirms the margin\-analysis layer is essential\.
4. 4\.End\-to\-end performance characterizationof the Gateway one\-shot pattern \(0\.8% overhead vs\. direct MCP\), retrieval latency \(375ms for top\-5 over 374 tools\), and bootstrap latency\.
## 2Related Work
### 2\.1MCP Ecosystem and Agent Protocols
The Model Context Protocol\[[10](https://arxiv.org/html/2609.30293#bib.bib1)\]standardizes exposure of tools, resources, and prompts to AI agents\. Its official Registry standardizes server metadata and discovery, while delegating additional curation and security checks to downstream aggregators\[[11](https://arxiv.org/html/2609.30293#bib.bib2)\]\. Code execution with MCP uses progressive disclosure and local code to load tools on demand and filter results before they reach the model\[[6](https://arxiv.org/html/2609.30293#bib.bib3)\]\. Cartograph complements both by treating ranked descriptions as a separately governed artifact: an operator can attest to the text that is embedded and selected, independent of publisher\-provided descriptions\.
The Google Agent\-to\-Agent \(A2A\) protocol\[[1](https://arxiv.org/html/2609.30293#bib.bib4)\]addresses complementary concerns: standardized agent discovery via Agent Cards, task lifecycle management, and multi\-agent orchestration\. Recent work has analyzed the integration of MCP and A2A\[[5](https://arxiv.org/html/2609.30293#bib.bib5),[8](https://arxiv.org/html/2609.30293#bib.bib6)\]\. Cartograph’s capability cards serve a distinct purpose: while A2A Agent Cards describe agent capabilities for inter\-agent discovery, Cartograph’s cards describe tool capabilities for*trustworthy retrieval*, with operator attestation and cryptographic signing as first\-class properties\.
### 2\.2Tool Selection and Function Calling
Tool selection from large spaces has been studied extensively\. Toolformer\[[16](https://arxiv.org/html/2609.30293#bib.bib8)\]learns when and how to invoke APIs from self\-supervised signals\. Gorilla\[[13](https://arxiv.org/html/2609.30293#bib.bib9)\]combines a function\-calling model with document retrieval\. ToolLLM\[[14](https://arxiv.org/html/2609.30293#bib.bib10)\]constructs training and evaluation resources around 16,464 REST APIs, and StableToolBench\[[4](https://arxiv.org/html/2609.30293#bib.bib11)\]addresses instability in online API evaluation\. The Berkeley Function Calling Leaderboard\[[18](https://arxiv.org/html/2609.30293#bib.bib12)\]evaluates function selection and parameterization\. These lines of work focus on a model’s tool\-use capability or its evaluation; Cartograph focuses on the deployment infrastructure that selects and governs the descriptions supplied to a model\.
### 2\.3Dense Retrieval and Embedding Quality
Dense passage retrieval \(DPR\)\[[7](https://arxiv.org/html/2609.30293#bib.bib13)\]demonstrated that learned dense representations can outperform sparse retrieval for open\-domain QA\. SPLADE\[[3](https://arxiv.org/html/2609.30293#bib.bib14)\]combined lexical and semantic matching through learned sparse representations\. The BEIR benchmark\[[17](https://arxiv.org/html/2609.30293#bib.bib15)\]established heterogeneous zero\-shot evaluation across 18 datasets and 9 retrieval tasks\. The Massive Text Embedding Benchmark \(MTEB\)\[[12](https://arxiv.org/html/2609.30293#bib.bib16)\]extended this to 8 embedding tasks across 58 datasets\. Rift applies these evaluation insights to the tool discovery domain: just as BEIR and MTEB revealed that retrieval models fail in domain\-specific ways, Rift reveals that tool summary embeddings fail in predictable, diagnosable patterns\.
### 2\.4Trust and Security in Agent Systems
Trust in tool\-using AI systems has been studied from several angles\. Tool sandboxing\[[6](https://arxiv.org/html/2609.30293#bib.bib3)\]limits blast radius by isolating execution\. The IETF SCITT architecture records signed statements in a transparency\-oriented supply\-chain architecture\[[2](https://arxiv.org/html/2609.30293#bib.bib18)\]\. Security analyses of the A2A protocol identify risks around sensitive data and delegation\[[9](https://arxiv.org/html/2609.30293#bib.bib7)\]\. Cartograph applies a narrower, deployment\-level control: it records an operator signature over the descriptions supplied to retrieval\. It does not establish that the underlying tool implementation is benign, and it is not a substitute for registry vetting, sandboxing, or transparency services\.
Table 1:Positioning of Cartograph against adjacent protocols, tool\-use research, and supply\-chain attestation\. The table distinguishes each line of work’s primary contribution from Cartograph’s deployment\-level design\.
## 3System Design
We first formalize the federated tool discovery problem, then present the four subsystems that compose Cartograph’s solution\.
Federated MCP servers2222servers,374374toolsCapability cardsoperator descriptions \+Ed25519 signaturesRift quality gateclusters, margins,token diagnosisMCP agentdiscover,status,callTwo\-stage indexserver rank→\\rightarrowtool rankOne\-shot Gatewaystdio call forwardingFigure 1:Cartograph separates the governance path \(top\) from the runtime path \(bottom\)\. Capability cards are attested and quality\-gated before indexing; the agent exchanges discovery requests and top\-kkschemas with the index, then forwards an execution call through the Gateway to the upstream server\.### 3\.1Problem Formalization
Let𝒮=\{S1,…,Sm\}\\mathcal\{S\}=\\\{S\_\{1\},\\ldots,S\_\{m\}\\\}be a set ofmmMCP servers\. Each serverSiS\_\{i\}exposes a set of tools𝒯i=\{ti,1,…,ti,ni\}\\mathcal\{T\}\_\{i\}=\\\{t\_\{i,1\},\\ldots,t\_\{i,n\_\{i\}\}\\\}, whereni=\|𝒯i\|n\_\{i\}=\|\\mathcal\{T\}\_\{i\}\|\. The total tool population isn=∑i=1mnin=\\sum\_\{i=1\}^\{m\}n\_\{i\}\. Each toolttcarries a publisher\-provided descriptiondescpub\(t\)\\text\{desc\}\_\{\\text\{pub\}\}\(t\)and a JSON Schema argument specificationargs\(t\)\\text\{args\}\(t\)\.
In the standard MCP discovery model, the agent receives the complete set of tool definitions:
𝒟standard=⋃i=1m⋃t∈𝒯i\{descpub\(t\),args\(t\)\}\\mathcal\{D\}\_\{\\text\{standard\}\}=\\bigcup\_\{i=1\}^\{m\}\\bigcup\_\{t\\in\\mathcal\{T\}\_\{i\}\}\\\{\\text\{desc\}\_\{\\text\{pub\}\}\(t\),\\text\{args\}\(t\)\\\}\(1\)The context\-token cost isTstandard=∑t\|tokenize\(descpub\(t\),args\(t\)\)\|=O\(n\)T\_\{\\text\{standard\}\}=\\sum\_\{t\}\|\\text\{tokenize\}\(\\text\{desc\}\_\{\\text\{pub\}\}\(t\),\\text\{args\}\(t\)\)\|=O\(n\), and the agent must additionally spend reasoning steps to select among them\.
Cartograph replaces complete disclosure with a retrieval functionR:𝒬×ℕ→2𝒯R:\\mathcal\{Q\}\\times\\mathbb\{N\}\\rightarrow 2^\{\\mathcal\{T\}\}that, given a task queryq∈𝒬q\\in\\mathcal\{Q\}and a budgetkk, returns a ranked list of at mostkktools\. The agent\-visible context\-token cost becomes:
Tcartograph=Tfixed\+k⋅Tper\-tool=O\(k\)T\_\{\\text\{cartograph\}\}=T\_\{\\text\{fixed\}\}\+k\\cdot T\_\{\\text\{per\-tool\}\}=O\(k\)\(2\)whereTfixedT\_\{\\text\{fixed\}\}is the fixed cost of exposing 3 discovery tools \(169 tokens in our measurement\) andTper\-toolT\_\{\\text\{per\-tool\}\}is the marginal cost of returning one tool with a schema and examples\. The internal first\-stage ranker still scoresmmserver centroids; that computation is not exposed in the agent context\. Thus, the context reduction is from linear in the catalog size to a fixed proxy interface plus a small retrieval budget\.
### 3\.2Capability Cards
A capability cardCiC\_\{i\}for serverSiS\_\{i\}is a tuple:
Ci=\(Ii,Ki,𝐭i,Pi,σi\)C\_\{i\}=\(I\_\{i\},K\_\{i\},\\mathbf\{t\}\_\{i\},P\_\{i\},\\sigma\_\{i\}\)\(3\)whereIiI\_\{i\}is the server identity \(endpoint, transport, publisher\),KiK\_\{i\}is the operator\-generated capability description \(summary, usage guidance, domain tags\),𝐭i=\(di,1,…,di,ni\)\\mathbf\{t\}\_\{i\}=\(d\_\{i,1\},\\ldots,d\_\{i,n\_\{i\}\}\)is the vector of operator\-generated per\-tool descriptions,PiP\_\{i\}is the provenance metadata \(generator version, timestamp, schema hash\), andσi\\sigma\_\{i\}is an Ed25519 signature\.
The signature is computed over the canonicalized card body\. Letcanon\(X\)\\canon\(X\)be deterministic JSON canonicalization: sort keys lexicographically, use compact separators, encode as UTF\-8\. Then:
σi=Signsk\(canon\(Ci∖\{σi\}\)\)\\sigma\_\{i\}=\\text\{Sign\}\_\{\\text\{sk\}\}\\big\(\\canon\(C\_\{i\}\\setminus\\\{\\sigma\_\{i\}\\\}\)\\big\)\(4\)Verification checksVerifyvk\(canon\(Ci∖\{σi\}\),σi\)=true\\text\{Verify\}\_\{\\text\{vk\}\}\(\\canon\(C\_\{i\}\\setminus\\\{\\sigma\_\{i\}\\\}\),\\sigma\_\{i\}\)=\\text\{true\}\. In our implementation, signing 22 cards takes<50<50ms; verification at retrieval time is negligible \(<1<1ms per card\)\.
The critical security property isoperator attestation: the semantic fieldsKiK\_\{i\}and𝐭i\\mathbf\{t\}\_\{i\}are generated by the deploying operator’s LLM, not by the tool publisher\. The publisher’sdescpub\(t\)\\text\{desc\}\_\{\\text\{pub\}\}\(t\)may be used as a hint but is never copied verbatim\. This breaks the trust\-bootstrap problem: a publisher cannot write copy to win retrieval because the publisher’s copy is never seen by the ranking mechanism\. Cards are text\-only; embeddings are computed at index time from the signed card text and stored separately\. A compromised index can be rebuilt from signed cards; a compromised card cannot poison the index without breaking the Ed25519 signature\.
### 3\.3Two\-Stage Retrieval
Letϕ:Σ∗→ℝd\\phi:\\Sigma^\{\*\}\\rightarrow\\mathbb\{R\}^\{d\}be an embedding function\. In our evaluation,ϕ\\phiis all\-MiniLM\-L6\-v2\[[15](https://arxiv.org/html/2609.30293#bib.bib17)\]withd=384d=384\. For a toolttwith operator\-generated summarys\(t\)s\(t\), the current implementation computes:
𝐯t=ϕ\(s\(t\)\)\\mathbf\{v\}\_\{t\}=\\phi\\big\(s\(t\)\\big\)\(5\)The server\-level centroid forSiS\_\{i\}is:
𝝁i=1ni∑t∈𝒯i𝐯t\\boldsymbol\{\\mu\}\_\{i\}=\\frac\{1\}\{n\_\{i\}\}\\sum\_\{t\\in\\mathcal\{T\}\_\{i\}\}\\mathbf\{v\}\_\{t\}\(6\)
Given a task queryqqwith embedding𝐪=ϕ\(q\)\\mathbf\{q\}=\\phi\(q\), retrieval proceeds in two stages:
Stage 1 \(server ranking\)\.Select the top\-ssservers by cosine similarity to query:
𝒮′=argmaxS′⊆𝒮,\|S′\|=s∑Si∈S′sim\_\{cos\}\(𝐪,𝝁i\)\\mathcal\{S\}^\{\\prime\}=\\argmax\_\{S^\{\\prime\}\\subseteq\\mathcal\{S\},\|S^\{\\prime\}\|=s\}\\sum\_\{S\_\{i\}\\in S^\{\\prime\}\}\\simcos\(\\mathbf\{q\},\\boldsymbol\{\\mu\}\_\{i\}\)\(7\)wheresim\_\{cos\}\(𝐚,𝐛\)=𝐚⋅𝐛‖𝐚‖‖𝐛‖\\simcos\(\\mathbf\{a\},\\mathbf\{b\}\)=\\frac\{\\mathbf\{a\}\\cdot\\mathbf\{b\}\}\{\\\|\\mathbf\{a\}\\\|\\\|\\mathbf\{b\}\\\|\}\. In the implementation,s=min\(m,max\(2,⌊2k/n¯⌋\+1\)\)s=\\min\(m,\\max\(2,\\lfloor 2k/\\bar\{n\}\\rfloor\+1\)\), wheren¯\\bar\{n\}is the average number of tools per server; this adaptively expands the candidate set for sparse catalogs\.
Stage 2 \(tool ranking\)\.Within selected servers, rank tools by similarity:
R\(q,k\)=argmaxT′⊆⋃i∈𝒮′𝒯i,\|T′\|=k∑t∈T′sim\_\{cos\}\(𝐪,𝐯t\)R\(q,k\)=\\argmax\_\{T^\{\\prime\}\\subseteq\\bigcup\_\{i\\in\\mathcal\{S\}^\{\\prime\}\}\\mathcal\{T\}\_\{i\},\|T^\{\\prime\}\|=k\}\\sum\_\{t\\in T^\{\\prime\}\}\\simcos\(\\mathbf\{q\},\\mathbf\{v\}\_\{t\}\)\(8\)
This design mirrors the natural catalog topology: servers define coarse capability domains\. The time complexity isO\(m⋅d\+n𝒮′⋅d\)O\(m\\cdot d\+n\_\{\\mathcal\{S\}^\{\\prime\}\}\\cdot d\), wheren𝒮′n\_\{\\mathcal\{S\}^\{\\prime\}\}is the number of tools in selected servers, compared withO\(n⋅d\)O\(n\\cdot d\)for flat ranking\. The index is optimized forrecall@k\\text\{recall\}@k, not precision: a missed tool fails the task; an extra tool costs a few tokens\.
### 3\.4Rift: Confusable\-Cluster Detection
Rift ensures the embedding space remains discriminative\. Given tool embeddings\{𝐯t\}t∈𝒯\\\{\\mathbf\{v\}\_\{t\}\\\}\_\{t\\in\\mathcal\{T\}\}, it operates in three layers:
Layer 1—Density clustering\.Compute the pairwise cosine distance matrix:
Da,b=1−sim\_\{cos\}\(𝐯ta,𝐯tb\)∀ta,tb∈𝒯D\_\{a,b\}=1\-\\simcos\(\\mathbf\{v\}\_\{t\_\{a\}\},\\mathbf\{v\}\_\{t\_\{b\}\}\)\\quad\\forall t\_\{a\},t\_\{b\}\\in\\mathcal\{T\}\(9\)Apply agglomerative clustering with distance thresholdδ=1−θsim\\delta=1\-\\theta\_\{\\text\{sim\}\}\(we useθsim=0\.65\\theta\_\{\\text\{sim\}\}=0\.65\)\. The result is a set of candidate confusable clusters𝒞=\{C1,…,Cp\}\\mathcal\{C\}=\\\{C\_\{1\},\\ldots,C\_\{p\}\\\}where eachC∈𝒞C\\in\\mathcal\{C\}has\|C\|≥2\|C\|\\geq 2\. Cluster cohesion is:
coh\(C\)=1\|C\|\(\|C\|−1\)∑ta,tb∈C,a≠bsim\_\{cos\}\(𝐯ta,𝐯tb\)\\text\{coh\}\(C\)=\\frac\{1\}\{\|C\|\(\|C\|\-1\)\}\\sum\_\{t\_\{a\},t\_\{b\}\\in C,a\\neq b\}\\simcos\(\\mathbf\{v\}\_\{t\_\{a\}\},\\mathbf\{v\}\_\{t\_\{b\}\}\)\(10\)
Layer 2—Margin analysis\.For eachta∈Ct\_\{a\}\\in C, generate a synthetic task queryqaq\_\{a\}fromargs\(ta\)\\text\{args\}\(t\_\{a\}\)\(not from the card summary, to avoid circularity\)\. The margin fortat\_\{a\}is:
margin\(ta,C\)=mintb∈C,b≠a\[sim\_\{cos\}\(ϕ\(qa\),𝐯ta\)−sim\_\{cos\}\(ϕ\(qa\),𝐯tb\)\]\\text\{margin\}\(t\_\{a\},C\)=\\min\_\{t\_\{b\}\\in C,b\\neq a\}\\big\[\\simcos\(\\phi\(q\_\{a\}\),\\mathbf\{v\}\_\{t\_\{a\}\}\)\-\\simcos\(\\phi\(q\_\{a\}\),\\mathbf\{v\}\_\{t\_\{b\}\}\)\\big\]\(11\)A small margin means another tool is nearly as similar to the query as the correct tool; a negative margin means the wrong tool outranks the correct one—a retrieval failure\. The worst\-case margin for clusterCCis:
marginmin\(C\)=minta∈Cmargin\(ta,C\)\\text\{margin\}\_\{\\text\{min\}\}\(C\)=\\min\_\{t\_\{a\}\\in C\}\\text\{margin\}\(t\_\{a\},C\)\(12\)Risk classification uses two thresholds: HIGH ifmarginmin\(C\)<0\.10\\text\{margin\}\_\{\\text\{min\}\}\(C\)<0\.10, MEDIUM if<0\.20<0\.20, LOW otherwise\.
Layer 3—Token diagnosis\.Lettok\(t\)\\text\{tok\}\(t\)be the tokenized words in the tool summary\. The shared and distinguishing token sets are:
shared\(C\)\\displaystyle\\text\{shared\}\(C\)=⋂t∈Ctok\(t\)\\displaystyle=\\bigcap\_\{t\\in C\}\\text\{tok\}\(t\)\(13\)distinct\(t,C\)\\displaystyle\\text\{distinct\}\(t,C\)=tok\(t\)∖⋃t′∈C,t′≠ttok\(t′\)\\displaystyle=\\text\{tok\}\(t\)\\setminus\\bigcup\_\{t^\{\\prime\}\\in C,t^\{\\prime\}\\neq t\}\\text\{tok\}\(t^\{\\prime\}\)\(14\)Whendistinct\(t,C\)=∅\\text\{distinct\}\(t,C\)=\\emptyset, the tool has no unique lexical signal—the diagnosis is “REGENERATE”, instructing the operator to amplify functional differences\.
### 3\.5Gateway
The Gateway exposes a uniform call interfacecall:𝒮×𝒯×𝒜→ℛ\\texttt\{call\}:\\mathcal\{S\}\\times\\mathcal\{T\}\\times\\mathcal\{A\}\\rightarrow\\mathcal\{R\}, where𝒜\\mathcal\{A\}is the space of tool arguments andℛ\\mathcal\{R\}is the space of results\. Each invocation follows a one\-shot pattern:spawn\(Si\)→connect\(\)→invoke\(t,a\)→teardown\(\)\\text\{spawn\}\(S\_\{i\}\)\\rightarrow\\text\{connect\}\(\)\\rightarrow\\text\{invoke\}\(t,a\)\\rightarrow\\text\{teardown\}\(\)\. The latency decomposition is:
Lgateway=Lspawn\+Lhandshake\+Lexec\(t,a\)\+εL\_\{\\text\{gateway\}\}=L\_\{\\text\{spawn\}\}\+L\_\{\\text\{handshake\}\}\+L\_\{\\text\{exec\}\}\(t,a\)\+\\varepsilon\(15\)whereLspawnL\_\{\\text\{spawn\}\}is the subprocess start cost,LhandshakeL\_\{\\text\{handshake\}\}is the MCP initialization round\-trip,LexecL\_\{\\text\{exec\}\}is the tool execution time, andε\\varepsilonis the Gateway wrapper overhead\. The one\-shot pattern is correct and stateless at the cost of per\-call spawn overhead\.
## 4Implementation
Cartograph is implemented in Python 3\.11 \(≈\\approx1,800 lines across 12 modules\) as an MCP server exposing three tools:discoverembeds the task, retrieves top\-kktools, verifies signatures, and returns full schemas;statusreturns catalog overview;callroutes invocation through the Gateway\.
Module architecture follows the subsystem decomposition from Section[3](https://arxiv.org/html/2609.30293#S3):schema\.py\(Pydantic card models\),seal\.py\(Ed25519 sign/verify via thecryptographylibrary\),index\.py\(two\-stage retrieval with pluggable embeddings\),generator\.py\(LLM\-powered card generation fromtools/list\),rift/\(three\-layer detector and evaluation harness\),stubgen\.py\(Python stub generation from cards\),gateway/\(transport adapters with base protocol and stdio implementation\),config\.py\(mcp\.jsonparser\),resolver\.py\(retrieve \+ verify \+ materialize glue\), andmcp\_server\.py\(the MCP proxy server\)\.
In proxy bootstrap mode, Cartograph connects to enabled stdio servers, callstools/list, generates capability cards \(using a configured DeepSeek model or a deterministic bootstrap template\), signs them, and builds the retrieval index\. Card generation is an explicit artifact\-generation step; normal server startup loads available cards without rewriting them\. The corpus comprises 22 servers and 374 tools drawn from a security research environment spanning web scraping, binary analysis \(Ghidra, IDA Pro\), container orchestration \(Daedalus\), HTTP traffic inspection \(Proxy Atlas\), browser automation \(Chrome DevTools\), knowledge graphs \(Lattice\), LLM security evaluation, file management, GitHub threat intelligence, and task orchestration \(Phoenix\)\.
## 5Evaluation
We evaluate Cartograph across four dimensions: \(1\) token efficiency, \(2\) retrieval quality on a 49\-query author\-constructed benchmark, \(3\) confusable\-cluster detection via Rift on the full 374\-tool corpus, and \(4\) Gateway latency overhead versus direct MCP calls\. The primary retrieval results use bootstrap\-generated cards; Section 5\.4 reports a separate exploratory comparison on 119 LLM\-generated cards\.
### 5\.1Token Efficiency
Table 2:Token consumption per task cycle\. The fixedtools/listcost is measured via the Claude tokenizer; the agent reasoning estimate is an upper bound based on 374 tool definitions in context\.Table[2](https://arxiv.org/html/2609.30293#S5.T2)reports token consumption\. The standard MCP approach loadsn=374n=374tool definitions \(38,250 tokens of JSON Schema\)\. The agent reasoning cost of 4,200 tokens is an illustrative upper\-bound estimate based on the context cost of 374 tool names with descriptions; actual reasoning cost varies by task complexity and model\. Cartograph’s fixedtools/listresponse is 169 tokens \(3 tools\); eachdiscoverresponse adds≈\\approx306 tokens for top\-5 tools with full schemas and examples\. Total per task: 475 tokens—a 98\.8% reduction under this accounting\. Agent\-visible context scales with the fixed proxy interface plusk=5k=5retrieved tools, rather than with all 374 definitions\. Over 100 tasks, the same accounting projects approximately 4\.2 million fewer input tokens\.
### 5\.2Retrieval Quality
We construct a 49\-query benchmark spanning 13 of 22 servers\. Each query is a natural\-language task description paired with a ground\-truth correct tool, written by the authors to cover both server\-level disambiguation \(e\.g\., distinguishing Ghidra from IDA Pro\) and within\-server tool\-level discrimination \(e\.g\., distinguishing container start from run from create\)\. Example queries include “decompile a function to C\-like pseudocode for reverse engineering” \(correct: Ghidra’s decompile function\), “safely write a large file to disk with atomic checksum verification” \(correct: resilient\-write safe\_write\), and “scan a list of URLs for security vulnerabilities” \(correct: Burp Suite’s scan function\)\. We acknowledge the benchmark is author\-constructed and of moderate size \(n=49n=49\); expanding it with independently\-sourced queries is future work\.
We measurerecall@k\\text\{recall\}@kfork∈\{1,3,5\}k\\in\\\{1,3,5\\\}and Mean Reciprocal Rank \(MRR\), defined asMRR=1\|Q\|∑q∈Q1/rankq\\text\{MRR\}=\\frac\{1\}\{\|Q\|\}\\sum\_\{q\\in Q\}1/\\text\{rank\}\_\{q\}whererankq\\text\{rank\}\_\{q\}is the position of the correct tool\. We report descriptive results because the 49 queries were author\-constructed and the supplied benchmark artifact does not include a preregistered statistical test\.
Table 3:Retrieval quality on the 49\-query author\-constructed benchmark\. Results are descriptive, not a claim of general\-purpose statistical superiority\.Cartograph achievesR@5=0\.816\\text\{R@5\}=0\.816\(Table[3](https://arxiv.org/html/2609.30293#S5.T3)\), meaning the target tool appears in the top\-5 for 81\.6% of the benchmark queries\. The observed R@5 exceeds the keyword baseline by 0\.224 and the random expectation by 0\.803\. These differences are descriptive rather than population\-level claims: queries were authored for this deployment, and the sample is too small for broad generalization\. Cartograph’s intended output is a*shortlist*for subsequent schema inspection and agent reasoning, making R@5 more directly relevant than top\-1 selection\. The MRR of 0\.596 summarizes the ranking position over all queries\.
R@50\.25\.50\.751\.00Cartographtwo\-stageKeyword\(Jaccard\)Randomexpected0\.8160\.5920\.013Figure 2:Observed R@5 on the 49\-query author\-constructed benchmark\.The 9 queries where the target tool falls outside the top\-5 are concentrated in servers with generic bootstrap summaries \(e\.g\., “Server: hybrid\-scraper\. Contains 4 tool\(s\)\.”\)\. Such summaries can produce poorly discriminative centroids and Stage 1 failures\. The exploratory LLM\-card results below show that richer summaries alone are insufficient when the catalog mixes description regimes; any claim of improvement requires a uniformly regenerated corpus and a fresh benchmark run\.
### 5\.3Rift: Confusable\-Cluster Detection
We run Rift on the full 374\-tool corpus with thresholdsθsim=0\.65\\theta\_\{\\text\{sim\}\}=0\.65, HIGH<0\.10<0\.10, MEDIUM<0\.20<0\.20held constant\. The embedding model is all\-MiniLM\-L6\-v2; embedding model ablation is discussed in Section[6](https://arxiv.org/html/2609.30293#S6)\.
Table 4:Rift results on 374 tools\. Rift provides risk stratification that neither baseline can produce\.Rift detects 49 confusable clusters \(4 HIGH, 8 MEDIUM, 37 LOW\) affecting 136 tools \(Table[4](https://arxiv.org/html/2609.30293#S5.T4)\)\. The HIGH\-risk clusters are:
1. 1\.llm\-aegis\-mcp\(29 tools,coh=1\.000\\text\{coh\}=1\.000,marginmin=0\.000\\text\{margin\}\_\{\\text\{min\}\}=0\.000\): All 29 tools inherited identical bootstrap descriptions, producing embeddings with zero mutual distance\. This is a degenerate case of the bootstrap template: whendistinct\(t,C\)=∅\\text\{distinct\}\(t,C\)=\\emptysetfor allt∈Ct\\in C, retrieval is impossible\.
2. 2\.ghidra xrefs\(3 tools,marginmin=0\.017\\text\{margin\}\_\{\\text\{min\}\}=0\.017\): Cross\-reference functions collide on “references”, “address”, “maximum”\. Distinguishing tokens: “target” vs\. “source” vs\. “function”\.
3. 3\.daedalus registry\(3 tools,marginmin=0\.084\\text\{margin\}\_\{\\text\{min\}\}=0\.084\): Registry operations collide on “host”, “default”, “registry”\.
4. 4\.daedalus builder\(3 tools,marginmin=0\.093\\text\{margin\}\_\{\\text\{min\}\}=0\.093\): Builder VM operations collide on “builder”, “vm”, “image”\.
Within\-server collisions dominate \(91\.8%\): tools from the same server share a domain vocabulary that dominates the embedding, and only the per\-tool summary provides discrimination\. Cross\-server collisions \(4 clusters\) involve functionally similar tools from different domains \(e\.g\., Burp Suite scan progress vs\. Phoenix task results, both sharing “task\_id”, “args”\)\.
Table 5:Ablation: margin analysis is the component that assigns Rift’s HIGH and MEDIUM risk labels\.Margin analysis supplies Rift’s risk decision\(Table[5](https://arxiv.org/html/2609.30293#S5.T5)\)\. Without it, the implementation retains candidate clusters but has no HIGH or MEDIUM label to report\. Density clustering alone identifies nearby embeddings; it does not measure whether a task query separates the tools\. The marginmargin\(ta,C\)\\text\{margin\}\(t\_\{a\},C\)operationalizes this distinction by comparing the target tool with its nearest competitor\. Layer 1 finds candidates, Layer 2 assigns the retrieval\-risk label, and Layer 3 provides token\-level diagnosis\.
### 5\.4LLM\-Generated Cards
The evaluation above uses bootstrap cards generated without LLM refinement\. To examine description quality, we compare cards for 7 servers \(119 tools\) generated by the configured DeepSeek model at temperature 0 with bootstrap cards\. We compare three index configurations: \(A\) bootstrap cards for all 22 servers, \(B\) LLM\-generated cards for the 7 available servers only, and \(C\) a hybrid index with LLM cards where available and bootstrap cards as fallback\. This is an exploratory comparison because neither the model family nor the description regime is held constant across the complete catalog\.
Table 6:Card quality: bootstrap vs\. LLM\-generated\. LLM cards produce 100% distinct per\-tool summaries, eliminating the degenerate zero\-distance cluster\.Table[6](https://arxiv.org/html/2609.30293#S5.T6)reports card quality\. Across all 119 tools across 7 servers,*zero*LLM\-generated summaries are identical to their bootstrap counterparts; every tool receives a distinct, operator\-written description\. In the full bootstrap configuration, the llm\-aegis\-mcp server produced 29 tools with identical descriptions \(coh=1\.000\\text\{coh\}=1\.000\); LLM generation eliminates this failure mode entirely\.
Table 7:Retrieval quality by card configuration\. Hybrid improves R@1 but creates centroid imbalance that degrades R@5, showing that uniform card quality is essential\.Retrieval impact\.The hybrid configuration improves R@1 \(\+4\.1 pp to 0\.490\) and MRR \(\+1\.3 pp to 0\.609\), but R@5 decreases by 4\.0 pp to 0\.776 \(Table[7](https://arxiv.org/html/2609.30293#S5.T7)\)\. One bootstrap failure is resolved \(gen\-pilot token budget estimation\), but 3 new failures appear\. The new failures arise fromcentroid imbalance: LLM\-generated server summaries are substantially richer than bootstrap summaries \(e\.g\., “Container orchestration server…” vs\. “Server: daedalus\. Contains 43 tool\(s\)\.”\), causing LLM\-described servers to dominate Stage 1 ranking and pull queries away from the 15 bootstrap\-only servers\. Retrieval quality is bounded by the*weakest*cards in the index, not the strongest; uniform operator\-attested generation is required for consistent ranking\.
Rift impact\.Running Rift on the LLM\-only configuration \(7 servers, 119 tools\) detects 18 clusters withzero HIGH\-risk\(0 HIGH, 7 MEDIUM, 11 LOW\), compared to 49 clusters \(4 HIGH\) in the bootstrap configuration\. The degenerate cluster is eliminated\. No tool in the LLM\-generated set hasdistinct\(t,C\)=∅\\text\{distinct\}\(t,C\)=\\emptyset\. The hybrid configuration retains 2 HIGH\-risk clusters from the 15 bootstrap\-only servers\.
Key result\.LLM\-generated cards produce 100% distinct tool descriptions and eliminate degenerate zero\-distance clusters\. However, partial LLM adoption creates centroid imbalance that degrades Stage 1 ranking for bootstrap\-described servers\. Uniform operator\-attested generation across the entire catalog is necessary to realize the full retrieval quality benefit\.
### 5\.5Gateway Overhead
We measure Gateway latency versus direct MCP stdio calls over 10 trials \(after 2 warmup\) using a lightweight health\-check tool\. Both paths use the same upstream server, isolating the wrapper cost\.
Table 8:Gateway latency overhead \(10 trials, milliseconds\)\. The 0\.8% overhead applies to tools whereLexecL\_\{\\text\{exec\}\}is small relative to spawn cost; for longer\-running tools, the overhead percentage is even lower\.The Gateway introduces negligible overhead \(0\.8%, or 5ms\) because both paths pay the same dominant costs:Lspawn≈400L\_\{\\text\{spawn\}\}\\approx 400ms \(Python interpreter \+uv run\) andLhandshake≈250L\_\{\\text\{handshake\}\}\\approx 250ms \(MCP initialize \+ tools/list\)\. The wrapper adds onlyε≈5\\varepsilon\\approx 5ms\. For tools with longer execution times \(e\.g\., a 30\-second container build\), the percentage overhead is<0\.02%<0\.02\\%\. Connection pooling would eliminateLspawn\+LhandshakeL\_\{\\text\{spawn\}\}\+L\_\{\\text\{handshake\}\}, reducing latency toLexec\+εL\_\{\\text\{exec\}\}\+\\varepsilon\.
## 6Discussion
### 6\.1What Is Built and Measured
Cartograph is implemented end\-to\-end: capability card schema with Ed25519 signing, two\-stage retrieval index with pluggable embeddings, a configured\-LLM or deterministic\-bootstrap card generator, Rift CI gate with three\-layer detection, Python stub generator, one\-shot stdio Gateway, and the MCP proxy server\. The evaluation uses measurements on a 22\-server, 374\-tool security\-research corpus\.
### 6\.2Bootstrap vs\. LLM Cards
The LLM card experiment \(Section 5\.4\) provides direct evidence for three claims\. First,LLM generation eliminates degenerate clusters: Rift detects zero HIGH\-risk clusters on the LLM\-only configuration \(0/119 tools have identical descriptions\), confirming that operator\-attested generation resolves thedistinct\(t,C\)=∅\\text\{distinct\}\(t,C\)=\\emptysetfailure mode\. Second,partial LLM adoption creates centroid imbalance: the hybrid configuration improves R@1 \(\+4\.1 pp\) but degrades R@5 \(−\-4\.0 pp\) because LLM\-described servers dominate Stage 1 ranking over bootstrap\-described servers\. Third,uniform card quality is essential: retrieval quality is bounded by the weakest card in the index\. The full retrieval benefit of operator\-attested generation requires uniform LLM card generation across the entire catalog\. These findings confirm the architectural requirement for operator\-controlled LLM generation and motivate extending LLM card generation to all 22 servers as immediate next work\.
### 6\.3Retrieval Metric Interpretation
The observed R@5 advantage over keyword overlap aligns with Cartograph’s design philosophy, but it should not be read as a population\-level significance claim from this small, author\-constructed benchmark\. Cartograph does not attempt to pick the single correct tool; it returns a ranked shortlist for the agent to reason over\. The agent’s final tool selection involves schema inspection, example matching, and task\-specific judgment that exceed what embedding similarity alone can capture\. R@5 measures whether the target tool is*presented*to the agent; this is the operationally relevant metric because the agent cannot select a tool it never sees\.
### 6\.4Limitations and Future Work
LLM\-generated cards\.The LLM experiment \(Section 5\.4\) demonstrates that LLM\-generated cards eliminate degenerate clusters and produce 100% distinct descriptions\. However, only 7 of 22 servers \(119/374 tools\) have been regenerated\. Extending LLM generation to all 22 servers and re\-running the full benchmark suite on a uniformly LLM\-generated index is the most immediate next step\. Based on the centroid imbalance analysis, we expect uniform LLM cards to outperform both bootstrap and hybrid configurations\.
Embedding model ablation\.All experiments use all\-MiniLM\-L6\-v2\. The retrieval architecture is embedding\-agnostic; evaluating with stronger models \(e\.g\., text\-embedding\-3\-large,d=3072d=3072\) would characterize the embedding\-quality\-to\-retrieval\-quality relationship\. The marginal cost of a larger embedding model is an index\-time expense, not a per\-query cost\.
Benchmark scale and sourcing\.The 49\-query benchmark is author\-constructed and of moderate size\. Expanding it with independently\-sourced queries and increasingnnto≥200\\geq 200would provide statistical power for R@1 comparison and improve generalizability\.
One\-shot latency\.Connection pooling would reduce per\-call latency from≈\\approx650ms to≈\\approx50ms by eliminating per\-call subprocess spawn and MCP handshake\.
Multi\-operator federation\.The current trust model assumes a single operator\. Cross\-organization federation requires a PKI layer for key distribution and revocation\.
Transport diversity\.The Gateway currently supports stdio only; HTTP and SSE adapters are specified but unimplemented\.
## 7Conclusion
We presented Cartograph, a federated MCP proxy that changes agent\-visible discovery fromO\(n\)O\(n\)catalog disclosure toO\(k\)O\(k\)progressive disclosure through operator\-attested capability cards with Ed25519 signing, a two\-stage retrieval index, and the Rift confusable\-cluster CI gate\. Evaluated on a 22\-server corpus comprising 374 tools, Cartograph exposes 3 proxy tools instead of 374 detailed definitions\.
The empirical results show: \(1\)98\.8% fewer input tokensunder the stated full\-catalog accounting \(38,250→\\rightarrow475 per task cycle\), with observedR@5=0\.816\\text\{R@5\}=0\.816versus 0\.592 for Jaccard keyword retrieval on the 49\-query benchmark; \(2\)Rift detects 49 confusable clusterson the full corpus, and margin analysis supplies its risk labels; \(3\)Gateway overhead is 0\.8%in the ten\-trial experiment; and \(4\)the available LLM\-generated cards remove the observed degenerate cluster—119 tools across 7 servers have distinct descriptions, although partial adoption reduces R@5 in the hybrid index\. Cartograph and code execution with MCP compose: Cartograph handles*which*descriptions to surface and records their provenance; code execution handles*how*to invoke and process tools\.
## References
- \[1\]A2A Project\(2025\)Agent2Agent \(A2A\) protocol\.Note:[https://github\.com/a2aproject/A2A](https://github.com/a2aproject/A2A)Accessed July 2026Cited by:[§1](https://arxiv.org/html/2609.30293#S1.p3.1),[§2\.1](https://arxiv.org/html/2609.30293#S2.SS1.p2.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.4.1.1.1)\.
- \[2\]H\. Birkholz, A\. Delignat\-Lavaud, C\. Fournet, Y\. Deshpande, and S\. Lasker\(2026\)An architecture for trustworthy and transparent digital supply chains\.RFCTechnical Report9943,RFC Editor\.External Links:[Document](https://dx.doi.org/10.17487/RFC9943),[Link](https://www.rfc-editor.org/rfc/rfc9943.html)Cited by:[§2\.4](https://arxiv.org/html/2609.30293#S2.SS4.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.6.1.1.1)\.
- \[3\]T\. Formal, C\. Lassance, B\. Piwowarski, and S\. Clinchant\(2021\)SPLADE v2: sparse lexical and expansion model for information retrieval\.arXiv preprint arXiv:2109\.10086\.External Links:[Link](https://arxiv.org/abs/2109.10086)Cited by:[§2\.3](https://arxiv.org/html/2609.30293#S2.SS3.p1.1)\.
- \[4\]Z\. Guo, S\. Cheng, H\. Wang, S\. Liang, Y\. Qin, P\. Li, Z\. Liu, M\. Sun, and Y\. Liu\(2024\)StableToolBench: towards stable large\-scale benchmarking on tool learning of large language models\.InFindings of the Association for Computational Linguistics: ACL 2024,pp\. 11143–11156\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.664),[Link](https://aclanthology.org/2024.findings-acl.664/)Cited by:[§2\.2](https://arxiv.org/html/2609.30293#S2.SS2.p1.1)\.
- \[5\]C\. Jeong\(2025\)A study on the MCP×\\timesA2A framework for enhancing interoperability of LLM\-based autonomous agents\.arXiv preprint arXiv:2506\.01804\.External Links:[Link](https://arxiv.org/abs/2506.01804)Cited by:[§2\.1](https://arxiv.org/html/2609.30293#S2.SS1.p2.1)\.
- \[6\]A\. Jones and C\. Kelly\(2025\)Code execution with MCP: building more efficient AI agents\.Note:[https://www\.anthropic\.com/engineering/code\-execution\-with\-mcp](https://www.anthropic.com/engineering/code-execution-with-mcp)Anthropic Engineering; accessed July 2026Cited by:[§1](https://arxiv.org/html/2609.30293#S1.p2.1),[§2\.1](https://arxiv.org/html/2609.30293#S2.SS1.p1.1),[§2\.4](https://arxiv.org/html/2609.30293#S2.SS4.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.3.1.1.1)\.
- \[7\]V\. Karpukhin, B\. Oguz, S\. Min, P\. Lewis, L\. Wu, S\. Edunov, D\. Chen, and W\. Yih\(2020\)Dense passage retrieval for open\-domain question answering\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),pp\. 6769–6781\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.emnlp-main.550),[Link](https://aclanthology.org/2020.emnlp-main.550/)Cited by:[§2\.3](https://arxiv.org/html/2609.30293#S2.SS3.p1.1)\.
- \[8\]Q\. Li and Y\. Xie\(2025\)From glue\-code to protocols: a critical analysis of A2A and MCP integration for scalable agent systems\.arXiv preprint arXiv:2505\.03864\.External Links:[Link](https://arxiv.org/abs/2505.03864)Cited by:[§2\.1](https://arxiv.org/html/2609.30293#S2.SS1.p2.1)\.
- \[9\]Y\. Louck, A\. Stulman, and A\. Dvir\(2025\)Improving Google A2A protocol: protecting sensitive data and mitigating unintended harms in multi\-agent systems\.arXiv preprint arXiv:2505\.12490\.External Links:[Link](https://arxiv.org/abs/2505.12490)Cited by:[§2\.4](https://arxiv.org/html/2609.30293#S2.SS4.p1.1)\.
- \[10\]Model Context Protocol\(2024\)What is the model context protocol \(MCP\)?\.Note:[https://modelcontextprotocol\.io/docs/getting\-started/intro](https://modelcontextprotocol.io/docs/getting-started/intro)Accessed July 2026Cited by:[§1](https://arxiv.org/html/2609.30293#S1.p1.1),[§2\.1](https://arxiv.org/html/2609.30293#S2.SS1.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.2.1.1.1)\.
- \[11\]Model Context Protocol\(2025\)The MCP registry\.Note:[https://modelcontextprotocol\.io/registry/about](https://modelcontextprotocol.io/registry/about)Accessed July 2026Cited by:[§1](https://arxiv.org/html/2609.30293#S1.p1.1),[§2\.1](https://arxiv.org/html/2609.30293#S2.SS1.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.2.1.1.1)\.
- \[12\]N\. Muennighoff, N\. Tazi, L\. Magne, and N\. Reimers\(2023\)MTEB: massive text embedding benchmark\.InProceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics,pp\. 2014–2037\.External Links:[Document](https://dx.doi.org/10.18653/v1/2023.eacl-main.148),[Link](https://aclanthology.org/2023.eacl-main.148/)Cited by:[§2\.3](https://arxiv.org/html/2609.30293#S2.SS3.p1.1)\.
- \[13\]S\. G\. Patil, T\. Zhang, X\. Wang, and J\. E\. Gonzalez\(2023\)Gorilla: large language model connected with massive APIs\.arXiv preprint arXiv:2305\.15334\.External Links:[Link](https://arxiv.org/abs/2305.15334)Cited by:[§2\.2](https://arxiv.org/html/2609.30293#S2.SS2.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.5.1.1.1)\.
- \[14\]Y\. Qin, S\. Liang, Y\. Ye, K\. Zhu, L\. Yan, Y\. Lu, Y\. Lin, X\. Cong, X\. Tang, B\. Qian, S\. Zhao, L\. Hong, R\. Tian, R\. Xie, J\. Zhou, M\. Gerstein, D\. Li, Z\. Liu, and M\. Sun\(2024\)ToolLLM: facilitating large language models to master 16,000\+ real\-world APIs\.InThe Twelfth International Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=dHng2O0Jjr)Cited by:[§2\.2](https://arxiv.org/html/2609.30293#S2.SS2.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.5.1.1.1)\.
- \[15\]N\. Reimers and I\. Gurevych\(2019\)Sentence\-BERT: sentence embeddings using siamese BERT\-networks\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),pp\. 3982–3992\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1410),[Link](https://aclanthology.org/D19-1410/)Cited by:[§3\.3](https://arxiv.org/html/2609.30293#S3.SS3.p1.1)\.
- \[16\]T\. Schick, J\. Dwivedi\-Yu, R\. Dessì, R\. Raileanu, M\. Lomeli, E\. Hambro, L\. Zettlemoyer, N\. Cancedda, and T\. Scialom\(2023\)Toolformer: language models can teach themselves to use tools\.InAdvances in Neural Information Processing Systems,Vol\.36\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2023/hash/d842425e4bf79ba039352da0f658a906-Abstract-Conference.html)Cited by:[§2\.2](https://arxiv.org/html/2609.30293#S2.SS2.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.5.1.1.1)\.
- \[17\]N\. Thakur, N\. Reimers, A\. Rücklé, A\. Srivastava, and I\. Gurevych\(2021\)BEIR: a heterogeneous benchmark for zero\-shot evaluation of information retrieval models\.InThirty\-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track,External Links:[Link](https://openreview.net/forum?id=wCu6T5xFjeJ)Cited by:[§2\.3](https://arxiv.org/html/2609.30293#S2.SS3.p1.1)\.
- \[18\]F\. Yan, H\. Mao, C\. C\. Ji, I\. Stoica, J\. E\. Gonzalez, T\. Zhang, and S\. G\. Patil\(2024\)Berkeley function\-calling leaderboard\.Note:[https://gorilla\.cs\.berkeley\.edu/blogs/8\_berkeley\_function\_calling\_leaderboard\.html](https://gorilla.cs.berkeley.edu/blogs/8_berkeley_function_calling_leaderboard.html)Accessed July 2026Cited by:[§2\.2](https://arxiv.org/html/2609.30293#S2.SS2.p1.1),[Table 1](https://arxiv.org/html/2609.30293#S2.T1.2.5.1.1.1)\.相似文章
构建一个为AI代理生成代码库持久化地图的工具(开源)
Carto 是一个开源工具,可为代码库构建持久的领域地图,帮助 AI 代理理解系统,避免编辑错误文件、上下文溢出等故障,完全本地运行,无数据泄露。
HyperAgent: Planning and Acting over Tool-Schema Hypergraphs for Tool-Use LLM Agents
HyperAgent is a research framework that models tool relations via a Tool-Schema Hypergraph to improve planning and execution for LLM agents, reducing API calls and token usage on the AppWorld benchmark.
agency-os:将Notion作为AI代理的调度面板 - 开源、MIT许可、原生MCP支持、兼容Claude Code、Cursor、Cline或任何MCP接口
agency-os是一款开源工具,可将Notion转变为AI代理的编排层,允许用户规划任务、审批任务树,并通过MCP调度代理。它支持模型路由和依赖解析,兼容Claude Code、Cursor、Cline及其他支持MCP的代理。
Toolport:随心使用任意数量的MCP服务器,免除Token开销
Toolport是一款开源工具,可让你使用多个MCP服务器而无需消耗上下文Token,提供诸如检测抽地毯骗局等安全功能,并能在不同AI智能体之间无缝导入/导出MCP配置。
MAP-Graph:面向多智能体工作流的溯源感知共享内存
介绍了 MAP-Graph,一个面向多智能体工作流的溯源感知共享内存层,它通过权限过滤、路径信任重排序,并对风险操作进行门控,在受控基准测试中实现了 94.96% 的任务成功率。