arXiv:2610.22688cs.CLOct 2026

Manuscript Offprint

arXiv:2610.22688

Explore Separately, Adopt Selectively: Execution-Guided Tool Use over Large Tool Libraries

Anna Mazhar, Seiji Maekawa, Nikita Bhutani

Abstract

Large language model agents must discover relevant tools from large libraries, e.g., thousands of tools, as new needs arise during task execution. When several candidates could satisfy the same need, execution may be required to identify the relevant one. Investigating candidates in a shared trajectory can leave alternatives unexplored or allow failed attempts to influence subsequent reasoning. To address this, we present BRIA (BRanch-Inspect-Adopt), a simple yet effective agent that temporarily isolates candidate investigations in separate branches. Each branch retrieves and executes tools to investigate its candidate; a task agent inspects the resulting execution evidence and adopts only useful results into its continuing trajectory. BRIA retrieves additional tools as new capability needs arise during task execution. We evaluate BRIA on PlanBench-XL and MCP-Atlas using a shared pool of 1897 tools, three language models, and static and adaptive retrieval baselines. Across all settings, BRIA matches or exceeds the strongest retrieval baseline. On MCP-Atlas, it achieves an average claim score of 89.77, compared with 75.40 for MCP-Zero, a gain of 14.37 percentage points. BRIA also lies on the Pareto frontier for task performance and input-token cost.

1 Introduction

Large language model (LLM) agents increasingly rely on external tools such as APIs, databases, repositories and services to complete tasks that require capabilities beyond the model itself. As tool libraries grow to hundreds or thousands of tools (Qin et al., 2025; Huang et al., 2026; Du et al., 2024; Fei et al., 2025), exposing the entire library at once becomes impractical. Retrieving too many tools increases context size and decision complexity, while retrieving too few can hide capabilities needed later in the task. Tool retrieval is therefore central

Figure

+T top-k retrieval from a large tool pool (~1.9k tools)

Figure 1: (a) Static top-k retrieval may miss the right source. (b) Adaptive retrieval tries sources sequentially in one trajectory: it may stop after the first failure (①) or accumulate failed attempts in context (②). (c) BRIA explores each source in an isolated branch and adopts only the one grounded in execution evidence (e).

to scalable tool use, much like retrieval-augmented generation, where retrieval must balance coverage and context size (Lewis et al., 2020; Maekawa et al., 2024; Taguchi et al., 2025).

Recent work adapts tool retrieval as the needs of the agent evolve (Fei et al., 2025; Xiao et al., 2026; Huang et al., 2026; Zhai et al., 2026; Zheng et al., 2026). However, adaptive retrieval can face tool uncertainty: multiple candidate sources may offer the same capability, while only some contain the information relevant to the task. For example, a task may require information from an unspecified data source, with MongoDB, Notion databases, and Airtable all plausible candidates (Figure 1). The agent must investigate the candidates to identify the relevant source.

∗^{*}Work done during internship at Megagon Labs.

†^{\dagger}Equal contribution.

MethodIterative RetrievalBranchingSelective AdoptionPlug-and-Play
One-shot Top-k✕✕✕✓
Tree-Planner (Hu et al., 2024)✕✓✕✓
MCP-Zero (Fei et al., 2025)✓✕✕✓
FitText (Zheng et al., 2026)✓✓✕✓
ToolGate (Liu et al., 2026c)✓✕✓✓
ToolQP (Fang and Glass, 2026)✓✕✕✕
BRIA (ours)✓✓✓✓

Table 1: Comparison of adaptive retrieval approaches. “Branching” denotes explicit investigation of candidate tool-use trajectories; “Selective adoption” denotes tool execution and selective retention of results from candidate investigations; and “Plug-and-Play” indicates whether an arbitrary LLM can be used without parameter updates.

An adaptive retrieval method such as MCP-Zero (Fei et al., 2025) may investigate candidates sequentially within a single trajectory. However, if an attempt is unsuccessful, the agent may stop before exploring other candidates. The failed attempt may also remain in the agent’s context, increasing its size and potentially influencing subsequent reasoning. These risks are especially relevant to tasks involving long tool-call sequences, where context can grow substantially (Maekawa et al., 2026).

Existing methods address different aspects of this challenge. Tree-Planner and FitText explore alternative tool-use trajectories, while ToolGate supports verified tool execution and state updates (Hu et al., 2024; Xiao et al., 2026; Liu et al., 2026c; Zheng et al., 2026). However, as Table 1 shows, no existing method combines iterative retrieval, isolated candidate investigations, and selective adoption of execution results.

We introduce BRIA (BRanch–Inspect–Adopt), an execution-grounded approach that brings these capabilities together for tool use over large libraries. When tool uncertainty arises because multiple candidates could satisfy a capability need, BRIA investigates each in an isolated branch, where tools can be retrieved and executed independently as needs evolve. The task agent inspects the resulting evidence, adopts useful results, and resumes the task. This process repeats as new capability needs arise.

We evaluate BRIA on PlanBench-XL (Liu et al., 2026a) and MCP-Atlas (Bandi et al., 2026), using a shared retrieval layer with 1897 tools, three LLM families, and four baseline methods. Across both benchmarks, BRIA matches or exceeds the strongest adaptive retrieval baseline. On PlanBench-XL, it achieves equal or higher success rates than MCP-Zero (Fei et al., 2025) while using less than half as many input tokens. On MCP-Atlas, it improves task performance by up to 14.4 percentage points over the strongest baseline. Our ablation studies and analyses further quantify the effects of isolated investigation and selective adoption, and show that branching is most useful when only a subset of candidates is needed. Our case studies illustrate how BRIA investigates candidates as tool uncertainty arises.

Our contributions are summarized as follows:

• We characterize tool uncertainty in adaptive retrieval, where multiple candidates may satisfy the same capability need, and execution may be needed to identify which contains relevant information.

• We introduce BRIA, which isolates candidate investigations in separate branches and selectively adopts useful, execution-grounded results (Section 3).

• We evaluate BRIA using two tool-use benchmarks and three LLMs against four baselines, and analyze its performance and input-token cost (Section 4).

• We analyze when branching helps and provide case studies of candidate investigation through tool execution (Section 4.6).

References (31)