ToolLibGen: Scalable Automatic Tool Creation and Aggregation for LLM Reasoning
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large Language Models (LLMs) equipped with external tools have demonstrated enhanced performance on complex reasoning tasks. The widespread adoption of this tool-augmented reasoning is hindered by the scarcity of domain-specific tools. For instance, in domains such as physics question answering, suitable and specialized tools are often missing. Recent work has explored automating tool creation by extracting reusable functions from Chain-of-Thought (CoT) reasoning traces; however, these approaches face a critical scalability bottleneck. As the number of generated tools grows, storing them in an unstructured collection leads to significant retrieval challenges, including an expanding search space and ambiguity between function-related tools. To address this, we propose a systematic approach to automatically refactor an unstructured collection of tools into a structured tool library. Our system first generates discrete, task-specific tools and clusters them into semantically coherent topics. Within each cluster, we introduce a multi-agent framework to consolidate scattered functionalities: a code agent refactors code to extract shared logic and creates versatile, aggregated tools, while a reviewing agent ensures that these aggregated tools maintain the complete functional capabilities of the original set. This process transforms numerous question-specific tools into a smaller set of powerful, aggregated tools without loss of functionality. Experimental results demonstrate that our approach significantly improves tool retrieval accuracy and overall reasoning performance across multiple reasoning tasks. Furthermore, our method shows enhanced scalability compared with baselines as the number of question-specific increases.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 24 of its 27 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
24 of 27 references.
Closest ancestors · 1
Same direction, newest first
- 2023CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Models23 May
Other references · 23
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2025Qwen3 Technical Reportcited by 8,195
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2022PAL: Program-aided Language Modelscited by 635
- 2023Augmented Language Models: a Surveycited by 398
- 2023ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solvingcited by 276
- 2025DeepMath-103K: A Large-Scale, Challenging, Decontaminated, and Verifiable Mathematical Dataset for Advancing Reasoningcited by 261
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skillscited by 174
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 140
11 more
- 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
- 2025Inducing Programmatic Skills for Agentic Taskscited by 103
- 2024TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Taskscited by 70
- 2024SciAgent: Tool-augmented Language Models for Scientific Reasoningcited by 69
- 2025START: Self-taught Reasoner with Toolscited by 47
- 2024ReGAL: Refactoring Programs to Discover Generalizable Abstractionscited by 32
- 2025ReasonMed: A 370K Multi-Agent Generated Dataset for Advancing Medical Reasoningcited by 26
- 2023Gentopia: A Collaborative Platform for Tool-Augmented LLMscited by 25
- 2024DOTS: Learning to Reason Dynamically in LLMs via Optimal Reasoning Trajectories Searchcited by 17
- 2023Can LLM find the green circle? Investigation and Human-guided tool manipulation for compositional generalizationcited by 7
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 40
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnessescited by 13
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlookcited by 5
- 2026Generative Skill Composition for LLM Agentscited by 5
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesiscited by 1
- 2026HarnessCompass: Guiding Automatic Harness Evolution toward Generalizable and Effective Agent Harnesses3 Aug 2026
- 2026Generative Skill Composition for LLM Agents30 Jun 2026
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesis6 May 2026
- 2026Self-Improvement of Large Language Models: A Technical Overview and Future Outlook26 Mar 2026
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2025RefTool: Reference-Guided Tool Creation for Knowledge-Intensive Reasoning
- 2024Efficient Tool Use with Chain-of-Abstraction Reasoning
- 2024Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents
- 2026Evolving from Tool User to Creator via Training-Free Experience Reuse in Multimodal Reasoning
- 2025Distilling Tool Knowledge into Language Models via Back-Translated Traces
- 2024LLM With Tools: A Survey
- 2026Harness Engineering in LLM Tool Use via Agent-Native Reusable Tool Primitives
- 2026A Comprehensive Evaluation of LLM Reasoning: From Single-Model to Multi-Agent Paradigms