You know the problem. You give an LLM agent access to a dozen tools, ask it to do something that takes four or five steps, and it immediately grabs the first tool that looks plausible. Then it backtracks. Then it grabs another one. Then it realizes it needed a different tool first. Sound familiar?

Most LLM tool-use pipelines are greedy. The model picks a tool, runs it, looks at the output, picks the next tool. No lookahead. No planning. No sense of how step 3 depends on step 1. It works fine for simple queries. It falls apart on multi-step chains where the order matters.

ToolTree, a paper from Shuo Yang and colleagues at the University of Melbourne and University of Western Australia, accepted at ICLR 2026, takes a different approach. It borrows Monte Carlo tree search (MCTS) from game-playing AI and adapts it for multi-tool orchestration. The result is a training-free method that beats state-of-the-art by roughly 10% across four benchmarks.

The Core Idea: Search Before You Execute

MCTS works by building a tree of possible futures. You start at the root (your query), expand branches (possible tool calls), simulate outcomes, and propagate rewards back up. The tree learns which paths are worth exploring and which to prune.

ToolTree applies this to tool planning. Given a query and a tool registry, it runs an iterative MCTS loop:

  1. Selection - Pick the most promising node using UCT (the standard upper confidence bound for trees)
  2. Pre-evaluation - Before expanding a node, a fast LLM judge scores whether the proposed tool call is even viable. Wrong schema? Missing required parameters? Slot incompatible? Pruned before execution.
  3. Expansion - Generate candidate tool calls from the selected node
  4. Execution - Actually run the tool and observe the output
  5. Post-evaluation - A second LLM judge scores the actual contribution of the executed result. Did this tool output actually move toward answering the query? If not, prune the branch.
  6. Backpropagation - Update reward values up the tree

Steps 2 and 5 are the "dual feedback" in the paper's title. Pre-evaluation catches dead ends before you waste an API call. Post-evaluation catches tools that executed successfully but contributed nothing useful. Together they form the "bidirectional pruning" mechanism.

Why This Matters

Consider a medical diagnosis scenario (the paper includes a case study on this). The agent needs to check symptoms, look up drug interactions, verify dosage guidelines, and cross-reference lab results. A greedy agent might start by checking drug interactions before it even knows which drugs are relevant. ToolTree's pre-evaluation would flag that the tool call lacks required slot values. The branch gets pruned before execution.

Or imagine a travel planning task. The agent needs to search flights, check hotel availability, and compare pricing across dates. A greedy pass might search flights first, then hotels, then realize the dates don't align. ToolTree would explore multiple orderings in its tree, evaluate which sequences produce coherent plans, and prune the ones that don't.

The key insight is that tool execution is expensive. Every API call costs time and money. Pruning before execution (pre-evaluation) and pruning after seeing useless results (post-evaluation) concentrates compute on paths that actually matter.

The Numbers

The paper evaluates on four benchmarks spanning both closed-set and open-set tool planning:

  • GTA - General tool-use benchmark with structured tasks
  • ToolBench - Large-scale open-set tool-use with real APIs
  • RestBench - Restaurant-domain planning tasks
  • m&m - Multi-step reasoning with mixed tool types

Across all four, ToolTree averages roughly 10% improvement over the previous best methods. Notably, it achieves the highest efficiency score, meaning it gets more performance gain per second of compute than baselines. The bidirectional pruning is doing real work here. Without it, the search tree balloons and you burn budget on dead branches.

The efficiency point matters. MCTS is not cheap. You're running multiple LLM calls per tree node for evaluation. But because pruning cuts the tree down to size, the total cost stays competitive. The paper shows progressive efficiency curves where ToolTree reaches higher accuracy faster than search-based baselines that lack pruning.

Training-Free Is The Feature

Here's something worth underscoring. ToolTree requires zero fine-tuning. You do not need to train a reward model. You do not need to collect trajectory data. You do not need to modify your base LLM.

The pre-evaluation and post-evaluation judges are just LLM prompts. You give the judge the proposed tool call (or the tool call plus its output), and ask it to score relevance and correctness. The MCTS loop, the pruning thresholds, and the UCT selection formula are all hyperparameters you set in a YAML config.

This means you can drop ToolTree on top of any LLM that supports tool calling. GPT-4, Claude, an open-source model running locally, whatever. The paper's codebase includes a unified client that wraps OpenAI, Anthropic, and local model APIs.

How To Use It

The repo is at github.com/SYang2000/ICLR_2026_ToolTree. Clone it, install dependencies, and run the benchmark scripts. The config files are straightforward YAML. The main knobs are:

  • Search depth limit - How many tool steps deep the tree can go
  • Iteration budget - How many MCTS iterations to run per query
  • Pruning thresholds - Pre-eval and post-eval score cutoffs

For your own tasks, you need to provide a tool registry (the schemas and descriptions for your tools) and a dataset of queries. The evaluation pipeline expects either closed-set (exact match / F1) or open-set (LLM judge win rate) metrics.

The architecture is modular. The MCTS core lives in src/mcts/. The pruning logic is in pruning.py. The agent orchestration is in tooltree_agent.py. You can swap out the judge prompts, adjust the selection policy, or plug in different base models without rewriting the search loop.

What I'd Watch For

ToolTree is not a silver bullet. The dual-evaluation approach means you're running the LLM at least twice per tree node (once for pre-eval, once for post-eval). On tasks where tool calls are cheap and fast, the overhead of tree search might not pay off compared to a well-prompted greedy agent.

The pruning thresholds need tuning. Set them too aggressively and you cut good branches. Set them too loosely and you waste budget. The paper provides default values but notes they varied by benchmark.

And the efficiency gains depend heavily on how expensive your tool calls are. If your tools are free and instant, pruning saves less. If your tools cost $0.01 per call and take 2 seconds each, pruning saves a lot.

The Bottom Line

ToolTree reframes multi-tool orchestration as a search problem instead of a generation problem. Instead of asking "what tool should I call next?" it asks "which sequence of tool calls leads to the best outcome?" The MCTS framework gives you structured exploration. The dual-feedback pruning keeps the search tractable.

For prompt engineers and AI builders working with multi-step tool agents, this is a practical upgrade. No training required. Drop it on your existing stack. Tune the thresholds. Let the tree search find better plans than greedy decoding ever could.

The paper is arXiv 2603.12740. The code is on GitHub. ICLR 2026 proceedings will have the final version.