Skip to content
Preprint

Hybrid Semantic Tool Discovery for Enterprise MCP Gateway: Architecture and Implementation

Aug 2026 · 0 citations · 9 references
Computer Science

TL;DR

This work presents SCOUT (Selective Context Optimization for Universal Tooling for Universal Tooling), which reframes tool exposure as a context-selection problem, injecting only tools relevant to the current step, and reduces MCP tool-token consumption by 99%, cutting per-query inference cost at enterprise scale.

Abstract

Large language model (LLM) agents invoke external tools to retrieve and reason over information beyond pretrained knowledge. The Model Context Protocol (MCP) standardizes how such tools are surfaced, and a proxy MCP server aggregates many backend servers behind a single endpoint providing a secure, governable chokepoint for authentication, policy enforcement, and observability. This architecture creates two compounding challenges: a context-engineering bottleneck where full tool schemas saturate the model context window before any user query, and a tool discoverability barrier where users and agents cannot identify the best tool among 2,000+ indexed tools across 200+ MCP servers. Prompt caching reduces reprocessing cost but neither frees context capacity nor improves accuracy. We present SCOUT (Selective Context Optimization for Universal Tooling), which reframes tool exposure as a context-selection problem, injecting only tools relevant to the current step. SCOUT surfaces two MCP meta-tools -- tool_search and execute_tool -- where tool_search performs hybrid retrieval, fusing BM25 sparse matching with dense vector search via Reciprocal Rank Fusion to return the top-k relevant tools. Backed by zero-downtime catalog update pipelines, SCOUT resolves both context saturation and tool discovery challenges. In production at PayPal, SCOUT reduces MCP tool-token consumption from 140.2k tokens (70.1% of context) to 1.3k tokens (0.8%), a 99% reduction, cutting per-query inference cost at enterprise scale. Because SCOUT is surfaced as standard MCP tools, it is model-agnostic and requires no client-side modifications.

View source

Similar papers

Aug 2026

Boundary-aware tool routing framework for large language models in vertical domains scenarios

Experiments in a personalized apparel design scenario show that BATR enhances the accuracy of knowledge boundary detection and improves tool invocation stability compared with baseline methods, demonstrating improved controllability and reliability in the evaluated apparel-design tasks.

Hai-Long Zhang, Xin Shi, Hui-Juan Chen et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Harness Engineering in LLM Tool Use via Agent-Native Reusable Tool Primitives

This work introduces Tool Primitives, a design that replaces rigid API schema-based invocation with natural language as the interface for tool calling, where each tool is wrapped with an LLM interface that handles schema resolution and execution internally, enabling natural inter-tool communication for nested and multi...

Hai-Bo Jin, Sui-Jin Wang, Xu-Chen Yu et al. · 2 citations
Open access Jul 2026

Token-Aware API Design Patterns for Model Context Protocol Integration in Enterprise Distributed Systems

This article investigates serialization-boundary optimization as a critical architectural concern for MCP-native systems and proposes four composable backend design patterns that restructure API responses to maximize semantic density while minimizing token consumption without modifying underlying domain models or persi...

Nikhil Bharadwaj Ramashasthri · 0 citations
Jul 2026

Scalable LLM Agent Tool Access in the Cloud

A cloud-scale gateway system for MCP service is presented, which breaks the direct-connect model on the data plane and offloads legacy service integration, consolidating incompatible MCP variants, access control, tool recommendation, and session-aware routing to the gateway.

Ming-Xing Li, Enge Song, Yueshang Zuo et al. · 0 citations
Book Open access Jul 2026

MCP-Focus: Leveraging Function-Oriented Document Enhancement for MCP Server Retrieval

Experiments across multiple dense retrievers show that fine-tuning with MCP-Focus-enhanced documents consistently improves retrieval effectiveness over baseline document methods on multiple benchmarks.

Wenchun Jing, Haiyang Shen, Haoran Wang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.