How Do Agentic LLMs Decide to Call Tools? A Tool-Call Vector Shaped by Suppression
Xijie Gong, Tingxu Han, Jiahao Zhang, Wei Song, Ziqi Ding, Hanqi Yan, Youcheng Sun, Lijie Hu
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 -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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- Accepted by NeurIPS 2026 Main Poster
Related papers
TACT-Bench: Testing Adaptive Conversational Threats against Tool-Use Agents
Shared title terminologycs.AIIlia Hashemi Rad, Feijie Wu, Haoyu Wang et al.
Agent Recovery Gone Wrong: Measuring Harm Beyond Duplicate Calls
Shared title terminologycs.AIArtem Trofimov, Boris Novikov
SchemaCaps: When a Compatible Tool Update Silently Widens an AI Agent's Authority
Shared title terminologycs.AIYulliwas Ameur, Samia Bouzefrane, Soumya Banerjee
Intent-Conditioned Argument Mediation for Tool-Using LLM Agents: Blocking Trusted-but-Unauthorized Arguments
Shared title terminologycs.AIYulliwas Ameur, Miqeas Pedro Mendes, Samia Bouzefrane
SynCo: Data Synthesis Co-Training for Self-Evolving LLMs via Multi-Agent Reinforcement Learning
Shared title terminologycs.AIWei Yang, Shawn Li, Yuehan Qin et al.
Loud Failures, Quiet Failures: Fault Detection and Recovery in Tool-Using Language Model Agents
Shared title terminologycs.AIObada Kraishan