ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilities

Jiarui Lu, Thomas Holleis, Yizhe Zhang, Bernhard Aumayer, Feng Nan, Haoping Bai, Shuang Ma, Shen Ma, Mengyu Li, Guoli Yin, Zirui Wang, Ruoming Pang

Introduction and Motivation

As Large Language Models (LLMs) transition from passive text generators to autonomous agents, their ability to interact with external tools becomes paramount. However, current evaluation benchmarks for tool-use (often called function calling) frequently oversimplify the task. Most existing frameworks treat tool-use as a single-turn classification problem: given a prompt, the model must select the correct tool and populate its arguments.

This approach ignores the complexities of real-world applications, which are characterized by stateful environments, multi-turn interactions, and ambiguous user requirements. ToolSandbox is a new evaluation benchmark designed to address these gaps by testing LLMs in a stateful, conversational, and interactive environment.

Comparison of ToolSandbox with existing benchmarks across key dimensions like state dependency and interactivity.

As shown in the comparison above, ToolSandbox is the first benchmark to simultaneously address state dependency, conversational dynamics, and interactive evaluation while maintaining human-authored ground truth.

The ToolSandbox Architecture

ToolSandbox introduces a Python-native environment where an LLM agent interacts with three primary components to solve complex tasks:

  1. Stateful World: A mutable "World State" tracks variables such as battery levels, connectivity status, and database entries. Tools in ToolSandbox are not just isolated functions; they can inspect, depend on, or modify this global state. For example, a model cannot send a message if the "Cellular Service" state is disabled.
  2. User Simulator: To enable realistic multi-turn evaluation, the benchmark employs an LLM-powered (GPT-4o) user simulator. To ensure authenticity, the authors implement "Knowledge Boundaries," restricting the simulator's information to prevent it from providing the agent with answers it shouldn't have.
  3. Milestones & Minefields: Rather than relying on rigid string matching, ToolSandbox uses a Directed Acyclic Graph (DAG) of "Milestones" (required events) and "Minefields" (forbidden events, such as hallucinating a tool). This allows for "on-policy" evaluation, where the model can take any valid path to the goal.
The ToolSandbox execution flow, illustrating the interaction between the Message Bus, World State, and Milestone tracking.

Dataset and Scenario Design

The benchmark comprises 1,032 human-authored test scenarios spanning 11 domains, including Messaging, Maps, Weather, and Stocks, utilizing 34 unique tools. These scenarios are specifically designed to test three critical capabilities:

  • State Dependencies: Requiring the agent to perform prerequisite actions (e.g., enabling a setting) before executing a primary task.
  • Canonicalization: Converting natural language temporal or spatial references (e.g., "next Tuesday") into structured API formats.
  • Handling Insufficient Information: Scenarios where the model must identify missing information and ask the user for clarification rather than guessing or hallucinating.

Key Insights and Performance Analysis

The evaluation of state-of-the-art models revealed several surprising trends in LLM tool-use capabilities:

The Parallelism Trap: Highly capable models like GPT-4o and Claude-3-Opus often performed worse on state-dependent tasks because they attempted to issue parallel tool calls for efficiency. In a stateful environment, this frequently triggered race conditions where one tool attempted to run before its prerequisite state change was finalized.

The Proprietary vs. Open-Source Chasm: A significant performance gap remains between closed and open-source models. While GPT-4o led with a similarity score of 73.0, the top-performing open-source model, Hermes-2-Pro-Mistral-7B, lagged by over 40 points. Many open-source models failed because they could not effectively process tool outputs to inform their subsequent steps.

Brittleness of Robustness: When tool names were scrambled or descriptions removed, performance dropped significantly across the board. This suggests that many models rely on memorized API patterns rather than genuine reasoning based on provided documentation.

Limitations and Future Work

While ToolSandbox represents a significant step forward, the authors note several areas for improvement. The creation of milestones and minefields remains a labor-intensive manual process, and the LLM user simulator still exhibits a roughly 8% error rate. Future iterations may include "daemon processes" to handle background tasks (like timers) and improved automation for scenario generation to help the benchmark scale further.

Summary updated

BibTeX
@inproceedings{lu2025toolsandbox,
  author = {Jiarui Lu and Thomas Holleis and Yizhe Zhang and Bernhard Aumayer and Feng Nan and Haoping Bai and Shuang Ma and Shen Ma and Mengyu Li and Guoli Yin and Zirui Wang and Ruoming Pang},
  title = {{ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilities}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.65},
}
Figure