TagOut: Restricting agent tools safely, avoiding over-refusal and false promisesTagOut: Safely Restricting Agent Tools Without Over-Refusal or False Promises
The authors propose the training-free defense TagOut, which synchronizes tool schemas, prompts, and the dispatcher; on Gemma 4 31B it reduces the false refusal rate on 450 harmless requests to 7.3%.
The defender restricts some tools in temporary memory, read-only databases, and operations sessions, without changing model weights. The authors compare prompt ban with silent schema removal: the former retains the restricted schema, while the latter removes the schema without explanation; TagOut synchronizes the schema, prompt, and dispatcher guard from the same allowed-tool list.
- Temporary sessions need to disable some agent tools, but prompt bans may falsely refuse harmless requests or still call the tools, while silently removing schemas may lead the model to promise operations it cannot complete.
- TagOut does not train the model; it derives from the same allowed-tool list the visible schema, a prompt explaining the restriction and in-session alternatives, and a dispatcher guard, and checks consistency before dispatch.
- The authors completed 10,800 single-turn requests on two Gemma 4 models. The authors report that TagOut had zero restricted calls and zero false promises in the memory, SQL, and operations suites, and reduced harmless false refusals; 26B-A4B's harmful-refusal non-inferiority test did not reach the five-point margin.
- The authors note that the experiments cover only two open-weight models from the same model family, and the restricted slices are self-built with 25 or 50 items per group; multi-turn permission switching and cache cost are mainly analytical modeling, and relocating the cache layout requires serving engine support.
- Evaluated models
- Gemma 4 31B ITGemma 4 26B-A4B IT
- Benchmarks
- XSTest SafeXSTest UnsafeOR-Bench-Hard-1KBenign Contextual (B2)Restricted Memory (B1)In-Domain Harmful (B3)Restricted Write (DB-B1)Benign Diagnostic (DB-B2)Restricted Write (OPS-B1)Benign Diagnostic (OPS-B2)
- Metrics
- false refusalharmful refusalleaked callfalse promisedead-end refusalconstructive redirectprompt tokens
Sudhanshu Jaiswal et al. propose TagOut, a training-free defense method that achieves zero restricted tool calls and eliminates false promises in three agent scenarios. AI agents often run in restricted sessions where some tools must be disabled, such as memoryless ephemeral conversations or read-only mode; disabling tools in the prompt makes models refuse harmless requests or still call them, while silently hiding tools leaves models unaware of the restriction and may lead them to confidently promise operations they cannot complete. TagOut maintains a single list of available tools at runtime, removes restricted tool definitions, and appends a brief redirection note telling the model which capabilities are unavailable and how to offer alternative help. Compared with prompt-based disabling, this method turns dead ends into helpful responses, and on OR-Bench-Hard its erroneous refusals are even lower than those of agents without tool restrictions.
Related events and news
1 events · 0 news mentions
- This event's paper
TagOut:运行时限制智能体工具且不误拒
Paper analysis
What problem does this paper attempt to solve?
The authors study how to restrict agent tools while avoiding harmless false refusals, restricted calls, and commitments that cannot be fulfilled.
The core problem is: when session-level tool restrictions change only the prompt or tool declarations, the model's understanding of capabilities may be inconsistent with runtime execution.
- Application scenarios: temporary chats need cross-session memory disabled, and read-only databases and operations audits need write operations disabled, while the model and the remaining tools stay unchanged. The authors argue that deployers often adopt a single-channel shortcut to reuse the KV prefix and reduce multi-mode prompt maintenance.
- Shortcomings of existing approaches: the authors state that a prompt ban retains the restricted schema and may cause harmless false refusals, unhelpful dead-end refusals, or restricted calls; silent schema removal does not explain why a tool disappeared and may produce false action commitments. Intercepting only at the dispatcher also cannot handle false refusals and commitments in text.
- Core observation: the authors divide session policy into three channels—tool schemas, system instruction, and runtime dispatcher—and attribute four failure types to inconsistent channel updates; this is the explanatory framework proposed in the paper.
- Proposed defense: TagOut is a training-free method that removes restricted schemas from the same allowed-tool list, adds a redirect notice explaining the restriction and in-session alternatives, and rejects restricted calls at the dispatcher; it also includes a consistency check and a prefix-cache cost analysis.
- Threat model:
- Protection goal: enforce least privilege in temporary-memory, read-only SQL, and operations sessions while keeping harmless requests usable.
- Victim system: a function-calling agent with four tools, of which three are restricted and one in-session helper is retained.
- Controllable inputs: the operator controls tool declarations, the system prompt, and the dispatcher; model weights are unchanged.
- Evaluation boundary: the paper evaluates policy enforcement and over-refusal under normal user requests, and does not use prompt injection attacks as an experimental scenario.
What related research exists?
Related work is divided into three groups: over-refusal, least privilege and agent sandboxes, and the effect of tools on refusal behavior.
Over-refusal and prompt safety guardrails
- XSTest and OR-Bench: Röttger et al. (2024) compare over-refusal using 250 safe and 200 unsafe prompts; Cui et al. (2025) extend the design to a corpus of seemingly toxic prompts, and the hard subset still triggers refusals in strong models.
- Refusal mitigation and external moderation: Karaman et al. (2025) and Zhang et al. (2025) adjust refusal boundaries during training, while Cao et al. (2025) and Dherin et al. (2026) do not update weights; WildGuard (Han et al., 2024) and Granite Guardian (Padhi et al., 2025) classify responses post hoc. The authors note that these studies evaluate chat models without tools and do not change the tool schema in the request.
- Prompts and negation: Zheng et al. (2024a) study how safety prompts shift the representations of harmless queries toward refusal; Jang et al. (2023) and Vrabcová et al. (2025) study negation understanding. The authors argue that these pure-text studies cannot isolate the interaction between an attached tool schema and the prompt.
Capabilities, least privilege, and agent sandboxes
- Classic privilege principles: Dennis and Van Horn (1966) proposed capabilities, Saltzer and Schroeder (1975) named least privilege, Hardy (1988) described the confused deputy, and Capsicum by Watson et al. (2010) brought capability mode to UNIX.
- Agent isolation and policy enforcement: AgentDojo (Debenedetti et al., 2024) evaluates prompt injection in tool agents; IsolateGPT (Wu et al., 2025) isolates applications, CaMeL (Debenedetti et al., 2026) separates control flow from untrusted data, and Progent (Shi et al., 2025) compiles permission policies into deterministic checkers.
- What the paper criticizes: the authors state that CaMeL, Progent, and allowed-tool masks act on tool calls but do not update the prompt to explain temporary unavailability; TagOut retains the dispatcher guard and adds the schema and redirect notice, and Progent can still sit at the dispatcher.
Tool-mediated changes in refusal
- Three recent studies: Singh (2026) studies the relationship between safety boilerplate and unfaithful policy excuses after silent tool failure; Yang et al. (2026) use counterfactual workflows to study task risk and action authorization; Rodríguez et al. (2026) study how tool mediation makes models more permissive toward harmful requests.
- Design difference: the authors note that these studies fix the execution architecture and vary the task, whereas this paper fixes the task and varies the channel in which the restriction is placed, in order to examine the interaction between schema and prompt.
Baselines and benchmarks in this paper: the comparisons are an unrestricted baseline, Composite safety-warning ban, Narrow tool-only ban, silent schema removal, and a redirect ablation; XSTest, OR-Bench-Hard-1K, and self-built memory, SQL, and operations slices are used. The authors position TagOut as three-channel coordination rather than a replacement for existing policy checkers.
How does the paper address this problem?
TagOut generates tool declarations, redirect prompts, and dispatch rules from the same permission vector, and checks the consistency of the three.
TagOut's overall approach is that on each scheduling request, the model-visible capabilities and the runtime execution rules are derived simultaneously from the current allowed-tool list, avoiding a situation where one channel has been updated while the other still retains old permissions. The method does not modify model weights.
Permission representation and four failure types
- All tools are denoted T, and session permissions are represented by an indicator vector: c ∈ {0,1}|T|, where ct=1 means allowed and ct=0 means restricted. All three agents use a four-tool layout, and the restricted session is c=(0,0,0,1).
- The three channels are the tool schemas serialized into the request, the prompt describing session behavior, and the runtime dispatcher that decides whether to execute a call.
- The authors define four failure types: false refusal of harmless requests, leaked call of restricted tools, false action promise that cannot be fulfilled, and dead-end refusal that provides no alternative help.
Deriving three channels from the same list
- Schema channel: Sc retains only the JSON schemas of allowed tools, and D(c) is the set of restricted tools; the declaration of the same tool remains unchanged across different configurations.
- Dispatcher: executes only calls to allowed tools, and rejects restricted tools and names not belonging to T. The authors emphasize that this guard can only handle calls and cannot modify false refusals or promises in the text.
- Prompt channel: removes restricted tool descriptions from the base prompt, and inserts a redirect notice between the role header and the general safety footer, stating which capabilities are unavailable and what help the current session can still provide.
- Notification granularity: when some categories are restricted, list the restricted tools and fallback; when an entire capability category is restricted, use a category-level description without listing tool names. The two-sentence version is called the minimal redirect notice; the full memory version additionally contains a scope header, numbered redirect rules, and benign-scope rules, with the full prompt given in Appendix A.4.
Pre-scheduling consistency rules
- L1: tools advertised in the prompt must belong to Sc, D(c) must not remain in Sc; when an entire category is restricted, it must not be named in the prompt either.
- L2: except for the two exceptions in Appendix I.2, the two channels must not carry negative bans, and allowed schemas should use affirmative descriptions.
- L3/L4: when D(c) is non-empty, the prompt must provide an in-session redirect; tool restrictions must not be paired with broad sensitive-topic bans.
- The authors report that the main TagOut, minimal, and cross-domain notifications pass all rules; each baseline violates at least one. The specific formal projection and pseudocode are given in Appendix I.2.
Session switching and token cost
- Session-boundary compaction: TagOut is applied at permission-mode boundaries. The average prompt-length difference for restricted-memory requests is written as Δ U=Uban−Utag=626−285=341 tokens, corresponding to Composite ban and TagOut on Gemma 4 31B.
- Late-bound suffix: retains a neutral static prefix of the four schemas, enforces permissions at decoding time using the allowed-tool mask Mc, and places the notification as a short suffix after the user message; it is removed before the next round of encoding. When permissions are restored, a short restoration suffix is added.
- Cache layout: the paper compares per-request billing, exact-prefix KV, relocated KV, and warmup by mode; the 20-round and mid-session permission switching are mainly analytical models, not multi-turn online experiments.
Result determination and statistics
- Harmless and harmful requests are judged as answered or refused; false refusals include direct refusals, claims of missing capability, and refusal-style caveats followed by help. Read-only queries and clarification of missing attachments are not counted as false refusals.
- Restricted requests are divided into leaked call, dead-end refusal, false promise, constructive redirect, and other compliant reply; structured calls are identified directly, and text is labeled by a deterministic rule classifier, with the rules given in Appendix H.5 and H.6.
- Paired comparisons use exact McNemar and 95% Tango score intervals, with Holm correction for some test families; harmful refusal uses a one-sided non-inferiority test with a 5 percentage point margin relative to Composite ban.
What experiments did the paper conduct?
10,800 single-turn requests cover both Gemma 4 models; TagOut reduces false refusals and redirects restricted requests, but one non-inferiority test did not pass.
Experimental setup
- Models tested: Gemma 4 31B IT (dense) and Gemma 4 26B-A4B IT (MoE, 4B parameters activated per token), two open-weight models in total.
- Main memory suite: 650 prompts, including XSTest Safe 250, OR-Bench-Hard-1K samples 150, self-built harmless technical questions 50, restricted-memory requests 50, XSTest Unsafe 100, and self-built In-Domain Harmful 50.
- Cross-domain suite: the read-only SQL analyst and cloud operations auditor each have 25 restricted write requests and 25 harmless diagnostic questions; 50 per model per domain, 1,200 calls across six configurations.
- Configurations and baselines: the memory suite has 11 configurations in Table 2; the three main configurations run all 650, and the rest run target subsets by mechanism. Baselines include unrestricted, Composite/Narrow prompt ban, silent schema removal, and redirect ablation.
- Decoding and sample size: temperature=0, single-turn stateless function calling, visible thoughts, default max_output_tokens=2048; each prompt × configuration × model is run once. A total of 9,600 main-suite calls plus 1,200 cross-domain calls.
- Labeling and review: no LLM judge; structured calls plus a deterministic rule classifier. The authors conducted a blind review of 120 stratified sampled responses, with 115/120 agreement, 95% Clopper–Pearson interval 90.5%–98.6% (Table H.5).
Main results
The table below is based on Table 1, Table 3, and Table 5; memory metrics are for 50 restricted requests, SQL/Ops are for 50 restricted requests combined across the two domains, and all percentages are the paper's original values.
Swipe horizontally to read the table
Model Configuration 450 harmless false refusals↓ OR-Hard false refusals↓ Memory leak/false promise↓ Memory redirect↑ SQL/Ops redirect↑ 31B Unrestricted 10.7% 30.7% 44.0% / 50.0% 0.0% 0.0% 31B Silent removal, neutral 8.0% 22.7% 0.0% / 30.0% 28.0% 4.0% 31B Composite ban, 4 tools 22.7% 56.7% 0.0% / 0.0% 34.0% 14.0% 31B Narrow ban, 4 tools 11.1% 28.7% 0.0% / 0.0% 50.0% 16.0% 31B TagOut 7.3% 20.7% 0.0% / 0.0% 98.0% 92.0% 26B-A4B Unrestricted 12.2% 34.7% 44.0% / 52.0% 0.0% 0.0% 26B-A4B Composite ban, 4 tools 16.0% 40.0% 0.0% / 0.0% 38.0% 24.0% 26B-A4B TagOut 9.6% 25.3% 0.0% / 0.0% 98.0% 86.0% - The authors' main conclusion: TagOut handles both the text and call channels; in their evaluation, restricted-memory and SQL/Ops requests showed no restricted calls or false promises, and constructive redirect was higher than all baselines.
- Exceptions and remaining failures: 31B's TagOut had 2.0% dead end on memory requests, and 4.0% dead end and 4.0% empty call on SQL/Ops; 26B-A4B was 0.0%, 10.0%, and 4.0% respectively (Tables 1, 5).
- Baseline counterexamples: 26B-A4B's four-tool Narrow ban had 10.0% leak and 30.0% strict false promise on memory requests, and 28.0% leak on SQL/Ops; not all prompt bans can be generalized as blocking calls.
Harmful request safety
- Refusal results: on 150 harmful prompts, 31B's Unrestricted, Composite, and TagOut refused 90.0%, 95.3%, and 94.0% respectively; 26B-A4B was 89.3%, 94.7%, and 92.7% respectively (Table 3).
- Non-inferiority test: with Composite ban as reference and a 5 percentage point margin, 31B passes, p=0.028; 26B-A4B does not pass, p=0.060, which the authors call narrowly misses (Table 3, Appendix D.3).
- Counting condition for Unrestricted: each of the two models had 7 harmful prompts trigger memory_store_read rather than a direct refusal; after excluding these calls, the text refusal rates were 94.4% and 93.7% respectively (Appendix H.4).
Channel ablation and reasoning traces
- Schema×prompt: on 31B, with the Composite text unchanged, changing four tools to one tool moved OR-Bench-Hard false refusals from 56.7% to 43.3%; full redirect contract to TagOut moved from 22.0% to 20.7%. The authors report an interaction of +12.0 percentage points, p=0.0173; 26B-A4B is +6.67 points, p=0.1327 (Table 4, Appendix D.6).
- Notification ablation: 31B's minimal redirect notice on 50 restricted-memory requests gives 96.0% redirect, 4.0% dead end, zero leak and zero false promise; full TagOut gives 98.0% redirect, 2.0% dead end (Table 4). The authors consider the main redirect gain to come from boundary explanation and fallback.
- Trace audit: on 31B, among the 27 OR-Bench-Hard requests that switched to answering after schema removal, the proportion of reasoning mentioning topical guardrail went from 55.6% with four tools to 25.9% with one tool; none of these traces mentioned the memory tool. The authors note that this stratified audit is descriptive (Table D.8).
Cross-domain and cache cost
- Per-domain results: 31B's TagOut redirect is 88.0% on SQL and 96.0% on Ops, versus 20.0% and 8.0% for the four-tool Composite ban; 26B-A4B's TagOut is 84.0% and 88.0% respectively (Tables C.2, C.3).
- Harmless diagnostics: on 31B, B2 false refusals from Composite ban to TagOut go from 26.0% to 8.0%, p=0.0898 after Holm correction; the authors explicitly state it is not significant after correction (Table C.5).
- Prompt overhead: on 31B, average prompt tokens for restricted-memory requests go from 626 for Composite four tools to 285 for TagOut, with minimal notice at 206 (Table 2). Cross-domain SQL/Ops go from 712/642 to 237/276 respectively (Table 5).
- 20-round analytical model: when permissions switch every four rounds, naive re-encode is 17,120 uncached prefill tokens; late-bound suffix is 8,271/7,271 under exact-prefix KV and 5,421/4,421 under relocated KV, with the slash respectively full/minimal notification (Table 6, Figure 3).
Other ablations and analyses
- Classifier sensitivity: counting only full harmless refusals, 31B's Composite and TagOut are 12.0% and 1.8%, and 26B-A4B is 5.3% and 1.6% (Appendix H.5).
- Request parameter completeness: cross-domain unrestricted leaks 100.0% on value-complete requests for both models; 26B-A4B's four-tool Narrow ban leaks 58.3% (Table C.4).
- Decoding latency: on harmless requests already answered under Composite, Composite/TagOut latency per output token is 31.6/30.7 ms for 31B and 23.5/23.1 ms for 26B-A4B (Appendix G).
What are some points that can be further explored?
The authors list boundaries such as the model family, the self-built small slices, and multi-turn modeling, and propose follow-up directions that require serving engine support.
Limitations noted by the authors and future directions
- Model coverage: Limitations explicitly states that the online experiments only cover Gemma 4 31B and 26B-A4B, which belong to the same open-weight family, and other model families were not tested.
- Restricted slice size and source: Limitations notes that the slices were written for this study and are small, including 50 memory requests and 25 each for database and operations.
- Text labels: Limitations states that text results come from a deterministic rule classifier, with manual inspection of only 120 responses.
- Safety and prompt composition: Limitations reiterates that 26B-A4B did not pass the five-point non-inferiority margin; part of TagOut's harmless advantage over unrestricted comes from benign-scope rules, and affirmative helper schemas were not tested.
- Multi-turn and caching: Limitations states that the online experiments are single-turn, and that multi-turn permission switching and token cost are analytical modeling; the layout for relocating cached blocks requires serving-engine support, and the authors list online evaluation of multi-turn, multi-step read-only tools as the next step.
Scope of experimental coverage
- Models and calls: two models were tested; all 10,800 calls are English, single-turn, stateless, greedy, one per prompt × configuration × model, and no repeated experiments with multiple samples are reported (Appendix H.1).
- Data composition: 750 unique prompts in total, including 500 harmless, 100 restricted, and 150 harmful; the public portion comes from XSTest and OR-Bench-Hard-1K, and the rest were built by the authors (Table H.2).
- Defense comparisons: the memory suite compares 11 configurations, and the cross-domain suite compares 6; these include combinations with and without restricted schemas, different bans, and redirect notices, and prompt injection attacks were not used as an experimental condition.
- Determination method: no LLM judge was used; one of the authors completed the blind review of 120 responses, with raw agreement 95.8%, and all five disagreements were unfavorable to TagOut (Appendix H.7).
- Cost evidence: per-request token counts come from the API; the 20-round cache numbers are analytical projections. The hosted stateless service did not expose the number of accelerators or accelerator-hours (Appendix H.1).
Summarize the main content of the paper
TagOut coordinates three channels with a unified permission list, balancing tool restriction, harmless usability, and honest fallback on both Gemma 4 models.
TagOut is a training-free session-permission defense for tool agents, studying how to avoid over-refusal and false capability statements caused by restricting tools in temporary memory, read-only databases, and operations auditing.
- Problem: the authors argue that prompt ban and silent schema removal update only some channels, causing the prompt, tool declarations, and dispatcher to give inconsistent information about the same session; blocking calls alone also cannot handle text failures.
- Method: remove restricted schemas from the same allowed-tool list, add a redirect notice explaining unavailable capabilities and in-session fallback, and have the dispatcher reject restricted calls; L1–L4 check consistency before scheduling. It also analyzes the token cost of static prefix, late-bound suffix, and cache relocation.
- Harmless usability: on Gemma 4 31B, TagOut's false refusal rate on 450 harmless requests is 7.3%, versus 22.7% for Composite ban and 10.7% for unrestricted; on the OR-Bench-Hard subset they are 20.7%, 56.7%, and 30.7% respectively (Tables 1, 3).
- Restricted requests: both models achieve 98.0% constructive redirect, zero leak, and zero false promise on 50 restricted-memory requests; on combined SQL/Ops requests, redirect is 92.0% for 31B and 86.0% for 26B-A4B (Tables 1, 5).
- Safety and cost: on 150 harmful requests, TagOut's refusal rate is 94.0% for 31B and 92.7% for 26B-A4B; the former passes the five-point non-inferiority test, while the latter has p=0.060 and does not pass. On 31B, average prompt tokens for memory requests drop from 626 for Composite to 285 (Tables 2, 3).
- Authors' conclusion and boundaries: the authors state that reliable behavior requires all channels to agree on available capabilities. Their conclusion is based on the same model family, single-turn requests, and small self-built slices; multi-turn cache gains are mainly analytical results, and other model families and online multi-turn agents remain to be evaluated.
Research lineage
Connected via shared benchmarks in libraryRelated papers
- Which Words a Model Fears: From a Refusal Direction to a Vocabulary-Wide Fear LexiconAnalysis / interpretabilityarXiv