Manuscript Offprint

arXiv:2610.23071

Before Retrieval Begins: Safety and Tool-Use Decisions in LLM Agents

Aditya Nawal, Manit Baser, Mohan Gurusamy

Abstract

Large language models increasingly act as agents that call external tools, yet most tool-safety research examines only what follows a tool call. The prior decision of whether to call the tool remains largely unexamined and can influence downstream safety. Across the seven open-weight models, the unweighted model-average harm rate after admitted harmful requests is 74.5%. To identify what governs this decision, we apply a factorial intervention to the input request. Within our generated construction, neutralizing the requested-operation component produces the largest admission contrast (19 pp). A linear direction estimated from this contrast influences held-out admission in four of seven models; effects on operation-neutralized requests in some models show that it is not an operation-specific mechanism. We then test whether written refusal is behaviorally and representationally coupled to the same decision. Written refusal accompanies 33.6% of admitted harmful calls. Plain-text refusal training reduces unsafe admission in models that retain benign tool use, showing that response-level safety training can transfer to the call decision. Together, these results establish a partial, model-dependent relation between written refusal and tool admission. They motivate direct evaluation and supervision of tool admission rather than treating text refusal as its proxy.

1 Introduction

Large language models increasingly operate as agents that generate text, invoke external tools, and act on the results (Xi et al., 2025; Yao et al., 2022; Schick et al., 2023). Tool access grounds responses in current, task-specific information beyond the training cutoff. It also raises the stakes of an unsafe decision: an agent can fetch a page, send a message, or make a payment before anyone reviews the generated response.

Instruction tuning and refusal training primarily supervise the assistant’s text response (Ouyang et al., 2022; Bai et al., 2022). Tool-using agents introduce an earlier decision about invoking an external tool. Retrieval access can increase harmful outputs (Yu et al., 2025), and aligned chat models can become less safe when deployed as browser agents (Kumar et al., 2024). Retrieved pages can also weaken safeguards even when their content is not adversarial (Nawal et al., 2026). Retrieval agents therefore make an intermediate tool-use decision before conditioning their response on retrieved content.

We call the model’s decision to invoke a tool before observing its output tool admission. Existing methods assess proposed calls before execution (Xia et al., 2025; Xie et al., 2025b; Mou et al., 2026), and behavioral work shows that a written refusal can coexist with a prohibited call (Cartagena and Teixeira, 2026). We address two questions. First, which properties of a harmful request most strongly influence whether the model calls the tool? Second, to what extent is this decision behaviorally, representationally, and through training coupled to written refusal?

We study tool admission in an externally specified URL setting. The user or surrounding system supplies the URL. This removes query formulation, result ranking, and source selection from the decision. Every model sees the same URL for the same behavior. Paired request differences therefore estimate the effect of the request manipulation within this fixed setting. On seven open-weight models (3B–12B, four families) and 296 HarmBench-derived behaviors (Mazeika et al., 2024) paired with cached pages, we score harm after both tool-admission outcomes. Prompt-level defenses reduce the tool-admission rate but leave unsafe calls. To find what governs tool admission, we separate

Figure

Figure 1: System workflow and threat model of tool admission. Stage 1 (Input): the harmful request asks the model to use a fixed URL for a harmful task, and the benign request asks it to summarize the same URL. Stage 2 (Tool admission): the agent calls the web-retrieval tool or does not call it. Stage 3 (Execution): an admitted call returns the cached page and the model answers from it, while a no-call response can still be answered from parametric knowledge.

each request into a harmful topic (a controlled substance), a requested operation (explain how to produce), and a specificity modifier (step by step). A factorial design varies these components. The requested operation changes tool admission by 19 pp, more than twice the topic effect, and three closed models reproduce this ordering. Within this generated construction, the requested-operation component produces the largest observed admission contrast.

We next analyze internal representations at the tool-call decision token. The requested-operation contrast and the tool-admission outcome define anti-aligned linear directions. The call decision provides the tool-admission-outcome label. We then learn the requested-operation direction on one set of behaviors and intervene on unseen behaviors. Removing this frozen direction changes tool admission beyond a matched random control in four of seven models. This held-out result shows that a linear direction estimated from the operation contrast can influence admission in some models; it does not identify an operation-specific mechanism. Effect size and consistency vary across models and folds. In some models, the direction also moves operation-neutralized requests, showing that its influence is not specific to harmful-operation semantics.

Prior work establishes that written refusals can coexist with prohibited tool calls (Cartagena and Teixeira, 2026). We treat this behavioral divergence as the starting point. We test its internal and training-level relationship by steering the text-refusal direction at the decision token and fine-tuning models to refuse the same behaviors in plain text. Steering changes tool admission in four models, with varying magnitudes and directions. Under one single-seed recipe, fine-tuning reduces tool admission in three model–recipe combinations that retain benign tool use, but residual unsafe admission remains. Written refusal therefore has a partial, model-dependent relation to tool admission.

Our contribution is a controlled diagnosis of admission. We evaluate responses following both call and no-call decisions, identify the functional request component with the largest admission contrast, intervene on a direction estimated from that contrast on unseen behaviors, and test whether response-level refusal training transfers to admission.

Together, these findings show that harmful tool admission is shaped by the requested operation and is only partially coupled to written refusal. For users, a safe-looking response does not establish that the model withheld the call. Deployment evaluations must therefore inspect the action channel directly. Future safeguards should supervise and monitor admission itself, test whether admission control transfers across tool types, and preserve legitimate tool use.

Our contributions are as follows:

  1. We introduce ADMIT, an evaluation protocol that scores responses after both admission outcomes. Harmful responses follow 74.5% of admitted harmful requests, while no-call responses add 11.2 percentage points to ADMIT harm.

  2. In our generated factorial construction, the requested-operation component produces the largest admission contrast. Its 19-point effect exceeds the 8-point topic effect, and the ordering reproduces across open- and closed-weight models.

  3. The requested-operation contrast direction is anti-aligned with the admission-outcome direction across all seven open-weight models. Removing it changes admission on unseen behaviors in four models, demonstrating model-dependent intervention effects without identifying an operation-specific mechanism.

  4. We test text refusal–tool admission coupling through representation steering and refusal-only fine-tuning. The relationship is partial and model-dependent, so text refusal is not a reliable proxy for call safety.