How Do Agentic LLMs Decide to Call Tools? A Tool-Call Vector Shaped by Suppression

๐Ÿ“… 2026-10-07
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
This study investigates the internal decision-making mechanisms by which LLM agents choose between tool invocation and direct response. Methodologically, it proposes transforming complex prompts into single-variable contrastive pairs to construct minimal examples, thereby identifying a causal vector ฮผฮ”. This analysis is further supported by mechanistic interpretability, Transcoder decomposition, attention head tracing, and cross-model ablation experiments. The findings reveal that analytical verbs suppress features that interfere with tool-calling priors, and that ฮผฮ” exhibits both causal necessity and sufficiency. Notably, this mechanism is consistently observed across seven model families, including Qwen, and generalizes effectively to native multi-turn dialogue scenarios.
๐Ÿ“ Abstract
Tool calling, invoking external tools on demand, is central to agentic LLMs, yet the mechanism that decides whether a model calls a tool or responds directly remains poorly understood. Agentic prompts are long and heavily scaffolded, combining role instructions, tool schemas, format templates, and the user's request across hundreds of tokens, creating a noisy, highly entangled context in which no single controllable variable for mechanistic analysis is obvious. To obtain such a variable, we propose a method that converts complex agentic prompts into minimal contrastive pairs in which a single request verb determines the tool-call decision: replacing an execution-verb (e.g., \textit{write}) with an analysis-verb (e.g., \textit{discuss}) reliably flips the decision, suggesting it is mediated by a compact internal state. We construct 500 such paired prompts across Python, Java, and C++ (300 for mechanistic analysis, 200 held out for evaluation). We trace the decision to a vector, $ฮผ_ฮ”$, that is both causally necessary and sufficient and generalizes beyond the discovery prompts to native multi-turn $ฯ„^2$-Bench trajectories and verb-free requests. Behavioral ablations show that the scaffold establishes a tool-call prior; Transcoder decomposition then reveals that analysis verbs suppress this prior through features signaling that tool use is unnecessary, whereas execution verbs largely leave it intact. Downstream scaffold-reading attention heads and MLP features read out the resulting state, and the same mechanism recurs across seven models from the Qwen, Mistral, and Granite families. Our code is available at https://github.com/XijieGo/MI4ToolCalling.
Problem

Research questions and friction points this paper is trying to address.

Agentic LLMs
Tool calling
Decision mechanism
Mechanistic interpretability
Innovation

Methods, ideas, or system contributions that make the work stand out.

Tool-Call Vector
Mechanistic Interpretability
Contrastive Pairs
Suppression Mechanism
Transcoder Decomposition
X
Xijie Gong
Mohamed bin Zayed University of Artificial Intelligence
T
Tingxu Han
Mohamed bin Zayed University of Artificial Intelligence
J
Jiahao Zhang
Mohamed bin Zayed University of Artificial Intelligence
W
Wei Song
Griffith University
Ziqi Ding
Ziqi Ding
UNSW Sydney
CAPTCHAUsabilityCognitive Science
H
Hanqi Yan
Kingโ€™s College London
Youcheng Sun
Youcheng Sun
MBZUAI, Honorary SL@UoM
Trustworthy AIAutomated Reasoning
Lijie Hu
Lijie Hu
Assistant Professor, MBZUAI
Explainable AILLMDifferential Privacy