Selection over Injection: Evaluating Tool Retrieval in High-Cardinality AgentOps

Authors

DOI:

https://doi.org/10.34190/icair.7.1.5574

Keywords:

Large Language Models, AI Agents, Tool Use, Retrieval, Agent Evaluation

Abstract

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.

Author Biographies

Vincent Caldeira, Red Hat

Vincent Caldeira is APAC CTO at Red Hat and an Industry Visiting Scholar at Columbia University. Drawing on 20+ years in enterprise and financial IT, his research emphasizes AI safety, agentic system control, and digital sovereignty. He actively drives open-source AI standards across the Linux Foundation.

Ilya Kolchinsky, Red Hat

Ilya Kolchinsky is a researcher and software engineer at Red Hat with over a decade of experience in data science and machine learning research. His current interests focus on agentic infrastructure and the reliability of AI agents, including challenges related to tool execution, cost optimization, monitoring and evaluation methods.

Downloads

Published

2026-11-18