Selection over Injection: Evaluating Tool Retrieval in High-Cardinality AgentOps
DOI:
https://doi.org/10.34190/icair.7.1.5574Keywords:
Large Language Models, AI Agents, Tool Use, Retrieval, Agent EvaluationAbstract
As Large Language Models (LLMs) transition into autonomous agentic systems via standardized interfaces like the Model Context Protocol (MCP), they are increasingly exposed to high-cardinality toolsets. While granting agents access to thousands of enterprise tools theoretically expands their utility, naively injecting these tool schemas into a model's context window leads to prompt bloat. This introduces operational and governance risks such as unsafe tool use, reduced accountability, and overcomplicated compliance. Additionally, polluting the context by an extensive number of tool definitions, degrades reasoning performance, increases latency, and triggers hallucinations. To address this, we present an evaluation of Semantic Tool Selection - a retrieval-augmented approach (Tool-RAG) that pre-filters tool registries to inject only the most relevant tools per query, enabling transparent and accountable tool use decisions. In this paper, we implement a semantic routing architecture heavily anchored in a new open-source library for tool retrieval and subject it to a rigorous, AgentOps-driven evaluation framework. Rather than relying solely on end-to-end task completion, we trace and evaluate the agent's inner execution loop, introducing granular metrics for Information Retrieval alongside Agentic Execution metrics (Tool Selection Quality, Argument Correctness, and Context Efficiency). Evaluated against a high-cardinality adaptation of BFCL V4 Multiple dataset using a shared 443-tool catalog evaluated under a one-turn tool-binding protocol, our findings demonstrate that semantic tool retrieval reduces the number of tools exposed to the model by over 90%, thus drastically improving the accountability, reliability and explainability of tool selection and execution decisions compared to traditional static injection. This work provides a much-needed empirical foundation for AgentOps practitioners looking to scale multi-agent systems reliably without retraining foundational models.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 International Conference on AI Research

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.