How Many Tools Should an LLM Agent See? A Chance-Corrected Answer
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Before an LLM agent can use a tool, a retrieval system must decide which candidate tools to show to the agent. How long should that shortlist be? Show too many tools and the model struggles to choose. Show too few and the correct tool may not appear. Most systems apply a fixed shortlist size to every query, but no standard metric exists to evaluate whether that size was appropriate. We treat the number of tools shown to an LLM agent as the object of evaluation and we apply Bits-over-Random (BoR), a chance-corrected metric that asks whether success at a given depth is better than what random selection would achieve at that same depth. We evaluate BoR across three tool-selection benchmarks, multiple scorers, and registries ranging from 20 to 3,251 tools. We then turn the same principle into a reinforcement learning (RL) reward for choosing tool shortlist depth per query. The RL agent is deliberately simple, serving as a probe of the metric rather than a proposed system. As the shortlist grows, random chance of including the correct tool rises, so the reward naturally decreases, reducing the need for an engineered depth penalty. On BFCL (370 tools), the learned policy nearly matches the coverage of showing 50 tools (90.3% vs 90.8%) while presenting only 7 on average. On ToolBench (3,251 tools), a fixed shortlist of 5 tools achieves higher aggregate coverage (64.7% vs 61.9%) but finds nothing on hard queries (correct tool ranked 6th-20th). The BoR agent finds 16.7% on those same queries by searching deeper. Downstream validation with Claude Sonnet 4.6 indicates that shorter adaptive lists also improve the LLM's ability to select the right tool: 93.1% versus 87.1% when always shown 5 tools, widening to 76.8% vs 60.9% on medium-difficulty queries where the correct tool is present but not ranked first.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 34 of its 41 references that are in the map. First posted on arXiv 23 May 2026.
Builds on
34 of 41 references.
Closest ancestors · 10
Same direction, newest first
- 2025Dynamic Tool Dependency Retrieval for Lightweight Function Calling18 Dec
- 2025MemTool: Optimizing Short-Term Memory Management for Dynamic Tool Calling in LLM Agent Multi-Turn Conversations29 Jul
- 2025RAG-MCP: Mitigating Prompt Bloat in LLM Tool Selection via Retrieval-Augmented Generation6 May
- 2025LongFuncEval: Measuring the effectiveness of long context models for function calling30 Apr
- 2025On the Robustness of Agentic Function Calling1 Apr
- 2025Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Models3 Mar
- 2024StableToolBench: Towards Stable Large-Scale Benchmarking on Tool Learning of Large Language Models12 Mar
- 2023MetaTool Benchmark for Large Language Models: Deciding Whether to Use Tools and Which to Use4 Oct
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs14 Apr
Other references · 24
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
- 2023Active Retrieval Augmented Generationcited by 516
- 2024Adaptive-RAG: Learning to Adapt Retrieval-Augmented Large Language Models through Question Complexitycited by 451
- 2025ToolRL: Reward is All Tool Learning Needscited by 362
- 2024ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilitiescited by 295
- 2024InfoRM: Mitigating Reward Hacking in RLHF via Information-Theoretic Reward Modelingcited by 79
- 2025Process vs. Outcome Reward: Which is Better for Agentic RAG Reinforcement Learningcited by 70
- 2024ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrievalcited by 41
- 2025SePer: Measure Retrieval Utility Through The Lens Of Semantic Perplexity Reductioncited by 24
- 2025Efficient Context Selection for Long-Context QA: No Tuning, No Iteration, Just Adaptive-kcited by 21
- 2024Ranked List Truncation for Large Language Model-based Re-Rankingcited by 20
12 more
- 2025Scent of Knowledge: Optimizing Search-Enhanced Reasoning with Information Foragingcited by 20
- 2024SmartRAG: Jointly Learn RAG-Related Tasks From the Environment Feedbackcited by 19
- 2018Adaptive Document Retrieval for Deep Question Answeringcited by 16
- 2020Choppy: Cut Transformer For Ranked List Truncationcited by 11
- 2025From Ranking to Selection: A Simple but Efficient Dynamic Passage Selector for Retrieval Augmented Generationcited by 6
- 2025Cluster-based Adaptive Retrieval: Dynamic Context Selection for RAG Applicationscited by 6
- 2025Curriculum Guided Reinforcement Learning for Efficient Multi Hop Retrieval Augmented Generationcited by 5
- 2026ProRAG: Process-Supervised Reinforcement Learning for Retrieval-Augmented Generationcited by 4
- 2025Dynamic Context Selection for Retrieval-Augmented Generation: Mitigating Distractors and Positional Biascited by 3
- 2026Less is More for RAG: Information Gain Pruning for Generator-Aligned Reranking and Evidence Selectioncited by 3
- 2026Revisiting RAG Retrievers: An Information Theoretic Benchmarkcited by 3
- 2026The 99% Success Paradox: When Near-Perfect Retrieval Equals Random Selectioncited by 2
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026ToolChoiceConfusion: Causal Minimal Tool Filtering for Reliable LLM Agentscited by 9
- 2026Capability Minimization as a Safety Primitive: Risk-Aware Causal Gating for Least-Privilege LLM Agentscited by 6
- 2026SkillGate: Training In-Policy Skill Selection in Long-Horizon Agentscited by 1
- 2026What Does a Skill Actually Do? Estimands and Evaluation Validity for Tool and Skill Use in LLM Agents: A Critical Reviewcited by 1
- 2026Why Sample What You Can Enumerate? Exact Policy Optimization for Genomic Tool Selectioncited by 0
- 2026PrivacySkills: How Privacy Guidance Shapes Source Selection in LLM Agentscited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agents30 Sep 2026
- 2026PrivacySkills: How Privacy Guidance Shapes Source Selection in LLM Agents28 Sep 2026
- 2026What Does a Skill Actually Do? Estimands and Evaluation Validity for Tool and Skill Use in LLM Agents: A Critical Review27 Sep 2026
- 2026Why Sample What You Can Enumerate? Exact Policy Optimization for Genomic Tool Selection9 Sep 2026
- 2026SkillGate: Training In-Policy Skill Selection in Long-Horizon Agents19 Aug 2026
- 2026Capability Minimization as a Safety Primitive: Risk-Aware Causal Gating for Least-Privilege LLM Agents11 Jun 2026
- 2026ToolChoiceConfusion: Causal Minimal Tool Filtering for Reliable LLM Agents4 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026Toollery: Scaling LLM Agents to Thousands of Skills and Tools
- 2026Agents Don't Paginate: First-Chunk Selection for LLM Tool Responses
- 2025ToolScope: Enhancing LLM Agent Tool Use through Tool Merging and Context-Aware Filtering
- 2026How Many Tasks Are Enough for Agent Benchmark Decisions? A Replay Analysis of Public LLM Agent Benchmarks
- 2025Quantitative Certification of Agentic Tool Selection
- 2026ToolMenuBench: Benchmarking Tool-Menu Filtering Strategies for Reliable and Efficient LLM Agents
- 2026Reinforced Agent: Inference-Time Feedback for Tool-Calling Agents
- 2025AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimation