mlsanityData to 7 Oct 2026

Semantic Tool Discovery for Large Language Models: A Vector-Based Approach to MCP Tool Selection

arXiv 2603.20313 ↗First posted 19 Mar 2026cs.SE cs.AIcited by 1

On the map: LLM agents and tool use → Tool learning and function calling

Abstract (arXiv)

Large Language Models (LLMs) with tool-calling capabilities have demonstrated remarkable potential in executing complex tasks through external tool integration. The Model Context Protocol (MCP) has emerged as a standardized framework for connecting LLMs to diverse toolsets, with individual MCP servers potentially exposing dozens to hundreds of tools. However, current implementations face a critical scalability challenge: providing all available tools to the LLM context results in substantial token overhead, increased costs, reduced accuracy, and context window constraints. We present a semantic tool discovery architecture that addresses these challenges through vector-based retrieval. Our approach indexes MCP tools using dense embeddings that capture semantic relationships between tool capabilities and user intent, dynamically selecting only the most relevant tools (typically 3-5) rather than exposing the entire tool catalog (50-100+). Experimental results demonstrate a 99.6% reduction in tool-related token consumption with a hit rate of 97.1% at K=3 and an MRR of 0.91 on a benchmark of 140 queries across 121 tools from 5 MCP servers, with sub-100ms retrieval latency. Contributions include: (1) a semantic indexing framework for MCP tools, (2) a dynamic tool selection algorithm based on query-tool similarity, (3) comprehensive evaluation demonstrating significant efficiency and accuracy improvements, and (4) extensibility to multi-agent and cross-organizational tool discovery.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 12 of its 17 references that are in the map. First posted on arXiv 19 Mar 2026.

Builds on

12 of 17 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023Tool Learning with Foundation Models17 Apr
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb
  3. 2022TALM: Tool Augmented Language Models24 May

Other references · 9

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  5. 2023A Survey of Large Language Modelscited by 2,537
  6. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
  7. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  8. 2023Augmented Language Models: a Surveycited by 398
  9. 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 174

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025RAG-MCP: Mitigating Prompt Bloat in LLM Tool Selection via Retrieval-Augmented Generation
  2. 2026Hybrid Semantic Tool Discovery for Enterprise MCP Gateway: Architecture and Implementation
  3. 2025MassTool: A Multi-Task Search-Based Tool Retrieval Framework for Large Language Models
  4. 2024Data-Efficient Massive Tool Retrieval: A Reinforcement Learning Approach for Query-Tool Alignment with Language Models
  5. 2025MCP-RADAR: A Multi-Dimensional Benchmark for Evaluating Tool Use Capabilities in Large Language Models
  6. 2024Efficient and Scalable Estimation of Tool Representations in Vector Space
  7. 2024Towards Completeness-Oriented Tool Retrieval for Large Language Models
  8. 2026From Language to Action: Enhancing LLM Task Efficiency with Task-Aware MCP Server Recommendation