mlsanityData to 24 Nov 2026

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

arXiv 2610.23071 ↗Submitted 16 Oct 2026cs.CLcited by 0

On the map: LLM agents and tool use → Tool learning and function calling also fits: Agent threats, guardrails and governance

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 28 of its 40 references that are in the map. Submitted 16 Oct 2026.

Builds on

28 of 40 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026Controlling Tool Use with Heading-Specific Activation Steering7 Jul
  2. 2026LLM Agents Already Know When to Call Tools -- Even Without Reasoning10 May
  3. 2026Tool Calling is Linearly Readable and Steerable in Language Models8 May
  4. 2026ASA: Backbone-Training-Free Representation Engineering for Tool-Calling Agents4 Feb
  5. 2025Digging Into the Internal: Causality-Based Analysis of LLM Function Calling18 Sep
  6. 2024ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stages16 Feb
  7. 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb

Other references · 21

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
  3. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,271
  4. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
  5. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,506
  6. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,236
  7. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,174
  8. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 637
  9. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agentscited by 346
  10. 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agentscited by 321
  11. 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agentscited by 142
  12. 2024The Task Shield: Enforcing Task Alignment to Defend Against Indirect Prompt Injection in LLM Agentscited by 128
9 more
  1. 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedbackcited by 88
  2. 2024From Allies to Adversaries: Manipulating LLM Tool-Calling through Adversarial Injectioncited by 41
  3. 2025SafeToolBench: Pioneering a Prospective Benchmark to Evaluating Tool Utilization Safety in LLMscited by 26
  4. 2024The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Modelscited by 22
  5. 2025COSMIC: Generalized Refusal Direction Identification in LLM Activationscited by 22
  6. 2025Beyond Surface Alignment: Rebuilding LLMs Safety Mechanism via Probabilistically Ablating Refusal Directioncited by 15
  7. 2025Unintended Misalignment from Agentic Fine-Tuning: Risks and Mitigationcited by 13
  8. 2026Do LLMs Know Tool Irrelevance? Demystifying Structural Alignment Bias in Tool Invocationscited by 4
  9. 2026Relevance as a Vulnerability: How Web Retrieval Degrades Safety Alignment in LLM Agentscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Behavior Beyond Text: Evaluating Refusal Transfer Failure in LLM Agents
  2. 2026Mind the GAP: Text Safety Does Not Transfer to Tool-Call Safety in LLM Agents
  3. 2026System Prompts Affect Response Bias More Than Discriminability in LLM Safety
  4. 2026Tool Mediation Alters Refusal Mechanisms in Large Language Models
  5. 2026The Refusal--Compliance Tradeoff: A Large-Scale Safety Behavior Audit of Large Language Models
  6. 2026Do Language Models Know When They'll Refuse? Probing Introspective Awareness of Safety Boundaries
  7. 2025The Instability of Safety: How Random Seeds and Temperature Expose Inconsistent LLM Refusal Behavior
  8. 2026AgentBoundary: Counterfactual Evaluation of Safety in Tool-Using LLM Agents