ToolScope: Enhancing LLM Agent Tool Use through Tool Merging and Context-Aware Filtering
Marianne Menglin Liu, Daniel Garcia, Fjona Parllaku, Vikas Upadhyay, Fahad Shah, Dan Roth
Abstract
Large language model (LLM) agents rely on external tools to solve complex tasks. However, real-world toolsets often contain semantically redundant tools with overlapping names and descriptions, introducing ambiguity and degrading tool selection performance. In addition, LLMs face strict input context limits, which prevent the agent from efficiently considering a large number of tools per query. To address these challenges, we propose ToolScope, a novel approach which contains: (1) ToolScope-Merger with Auto-Correction: automatically audits and fixes tool merges, reducing semantic redundancy in large toolsets. (2) ToolScop-eRetriever, which ranks and selects only the top-k relevant tools for a given query, effectively compressing the toolset to fit within the LLM's input window without sacrificing selection accuracy. This selective filtering directly mitigates context length constraints by ensuring that only the most relevant tools are passed to the model. We evaluate ToolScope using 3 state-of-the-art LLMs across 3 open-source tool-use benchmarks covering both single-tool and multi-tool scenarios in diverse real-world domains. Experimental results show a substantial increase of 8.38% to 38.6% in tool selection accuracy, demonstrating ToolScope's effectiveness in enhancing LLM tool-use capabilities.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
- CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsets cites Gorilla: Large Language Model Connected with Massive APIs
- ToolRL: Reward is All Tool Learning Needs cites Gorilla: Large Language Model Connected with Massive APIs
- AvaTaR: Optimizing LLM Agents for Tool Usage via Contrastive Reasoning cites Gorilla: Large Language Model Connected with Massive APIs
- AvaTaR: Optimizing LLM Agents for Tool Usage via Contrastive Reasoning cites GPT4Tools: Teaching Large Language Model to Use Tools via Self-instruction
Builds on8
- Gorilla: Large Language Model Connected with Massive APIsShishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. GonzalezNeurIPS 2024 · 1,715 citations
- ToolRL: Reward is All Tool Learning NeedsCheng Qian, Emre Can Acikgoz, Qi He, Hongru Wang et al.NeurIPS 2025 · 387 citations
- GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructionRui Yang, Lin Song, Yanwei Li, Sijie Zhao et al.NeurIPS 2023 · 340 citations
- CRAFT: Customizing LLMs by Creating and Retrieving from Specialized ToolsetsLifan Yuan, Yangyi Chen, Xingyao Wang, Yi Fung et al.ICLR 2024 · 117 citations
- AvaTaR: Optimizing LLM Agents for Tool Usage via Contrastive ReasoningShirley Wu, Shiyu Zhao, Qian Huang, Kexin Huang et al.NeurIPS 2024 · 95 citations
Related papers
- ToolSpectrum: Towards Personalized Tool Utilization for Large Language ModelsZihao Cheng, Hongru Wang, Zeming Liu, Yuhang Guo et al.ACL Findings 2025 · 1 citation
- ToolScope: An Agentic Framework for Vision-Guided and Long-Horizon Tool UseMengjie Deng, Guanting Dong, Zhicheng DouACL Findings 2026
- Re-Invoke: Tool Invocation Rewriting for Zero-Shot Tool RetrievalYanfei Chen, Jinsung Yoon, Devendra Singh Sachan, Qingze Wang et al.EMNLP Findings 2024 · 7 citations
- BiasBusters: Uncovering and Mitigating Tool Selection Bias in Large Language ModelsThierry Blankenstein, Jialin Yu, Zixuan Li, Vassilis Plachouras et al.ICLR 2026 · 8 citations
- Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language ModelsZhengliang Shi, Yuhan Wang, Lingyong Yan, Pengjie Ren et al.ACL Findings 2025 · 7 citations
