Verification-Guided Context Optimization for Tool Calling via Hierarchical LLMs-as-Editors
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Tool calling enables large language models (LLMs) to interact with external environments through tool invocation, providing a practical way to overcome the limitations of pretraining. However, the effectiveness of tool use depends heavily on the quality of the associated documentation and knowledge base context. These materials are usually written for human users and are often misaligned with how LLMs interpret information. This problem is even more pronounced in industrial settings, where hundreds of tools with overlapping functionality create challenges in scalability, variability, and ambiguity. We propose Verification-Guided Context Optimization (VGCO), a framework that uses LLMs as editors to automatically refine tool-related documentation and knowledge base context. VGCO works in two stages. First, Evaluation collects real-world failure cases and identifies mismatches between tools and their context. Second, Optimization performs hierarchical editing through offline learning with structure-aware, in-context optimization. The novelty of our LLM editors has three main aspects. First, they use a hierarchical structure that naturally integrates into the tool-calling workflow. Second, they are state-aware, action-specific, and verification-guided, which constrains the search space and enables efficient, targeted improvements. Third, they enable cost-efficient sub-task specialization, either by prompt engineering large editor models or by post-training smaller editor models. Unlike prior work that emphasizes multi-turn reasoning, VGCO focuses on the single-turn, large-scale tool-calling problem and achieves significant improvements in accuracy, robustness, and generalization across LLMs.
Key facts. Cited by 3 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 21 of its 30 references that are in the map. First posted on arXiv 15 Dec 2025.
Builds on
21 of 30 references.
Closest ancestors · 7
Same direction, newest first
- 2024From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions10 Oct
- 2024ToolACE: Winning the Points of LLM Function Calling2 Sep
- 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets26 Jun
- 2024Learning to Use Tools via Cooperative and Interactive Agents5 Mar
- 2024AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Calls6 Feb
- 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instruction11 Jan
- 2023Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum27 Aug
Other references · 14
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
- 2025ToolRL: Reward is All Tool Learning Needscited by 362
- 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2024xLAM: A Family of Large Action Models to Empower AI Agent Systemscited by 111
- 2024What Are Tools Anyway? A Survey from the Language Model Perspectivecited by 54
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024LLM With Tools: A Survey
- 2024Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents
- 2025Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklists
- 2025Alignment for Efficient Tool Calling of Large Language Models
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarification
- 2024Tool Learning with Large Language Models: A Survey
- 2025ToolScope: Enhancing LLM Agent Tool Use through Tool Merging and Context-Aware Filtering
- 2026Try, Check and Retry: A Divide-and-Conquer Framework for Boosting Long-context Tool-Calling Performance of LLMs