Manuscript Offprint

arXiv:2610.40975

Does Showing Agents the Privilege of Their Tools Reduce Over-Privileged Tool Selection?

Simon Parkinson, Mauro Vallati, Zhipeng Wang, Mustafa Mustafa

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

When several tools can complete a task, an agent that picks the most powerful one holds more authority than the task needs. Recent work demonstrates that language-model agents do this often, and more so after a tool fails. Approaches to restrict focus so far on either enforcing least privilege outside the model or retraining the model. We ask a simpler question: does it help to tell the agent what each tool's privilege is? To investigate this question, we run all 544 ToolPrivBench scenarios on eight models, three run locally, and five through a hosted API, under five conditions: (1) no signal, (2) a least-privilege instruction, (3) privilege class and cost shown in each tool description, (4) both the instruction and privilege information, and (5) a matched neutral-metadata control. Showing privilege lowers premature escalation on every model that over-privileges at a measurable rate, reducing over-privileged selection by up to 19.3 percentage points (50%), whereas irrelevant metadata in the same format does not. On most models, however, information alone mainly delays escalation until the standard tools have been tried. Combined with the instruction it more often avoids escalation, and the share of scenarios completed without a risk tool rises on seven of the eight models, reaching 51.1% safe completion from a baseline of 18.8% on the strongest-performing configuration. Visible privilege is therefore a cheap complement to enforcement rather than a substitute.

Keywords: least privilege, AI agents, tool selection, over-privilege, large language models

1 Introduction

In agentic systems, the agent's planning capability turns a request into tool requests. When more than one tool can do the job, the choice is also an access-control decision. A tool that edits one record and a tool that edits the entire database may both complete the task, but they use very different amounts of authority. The principle of least privilege requires the lowest level of authority required to perform the task [20]. Access control mechanisms in the underlying system, together with enforcement layers designed for agents, restrict which tools and resources an agent is authorised to use [1, 22, 31]. However, authorisation is not the same as least-privilege selection. More specifically, enforcement bounds the set of actions an agent may take, but within that set the agent can still choose an unnecessarily powerful tool when a less powerful one would complete the task. A planner that does not know which of its authorised options carries the most authority cannot prefer the least powerful one, and as a result agents can exercise more authority than the task requires. This is problematic should the agent operate incorrectly, as any error then has a greater impact, and more significantly should the agent be compromised because it fails to adequately separate data from instructions [5]. In this paper, we address this task-level problem. Our approach does not replace enforcement, rather it complements it by informing the planner's choice among the tools that enforcement already permits.

In one recent study named ToolPrivBench, the authors measure how often agents make bad choices and end up selecting tools with too much permission [29]. Each of its 544 scenarios offers three standard

*Corresponding author: s.parkinson@mmu.ac.uk

Showing Agents the Privilege of Their Tools

Figure

Figure 1: Setup: the planner picks among tools that all work. We vary an instruction (B) and privilege information (D).

tools and three higher-privilege (risk) tools, each one sufficient for the task, and lets the first call to each standard tool fail with a temporary error. Over-privileged selection is common across eleven models and rises after failures, and the authors find that a prompt instruction to follow least privilege helps only a small amount once failures accumulate. As a solution, they propose post-training of the language model. Neither the benchmark nor its mitigations test the direct intervention of showing the planner each tool's privilege, as access control systems have long shown cost to the people they steer toward less powerful options [4, 11, 18, 19]. A likely reason why this intervention was not tested is that its outcome is not obvious. More specifically, a tool's description may already convey its privilege, in which case an explicit label adds little. After a failure, an agent may also prioritise completing the task over least privilege and ignore the label. Furthermore, a decrease in risky calls may reflect that the agent abandons the task rather than completing it more safely. For these reasons, we measure task completion alongside over-privileged selection, and compare the privilege information against a control that adds irrelevant metadata in the same format.

This paper answers this question for tool selection. Figure 1 provides a high-level illustration of the work undertaken in this paper. We keep ToolPrivBench's scenarios, protocol and metrics, and add the privilege class (read, write or administer) and a cost from 1 to 10 at the end of each tool description. Further, we add one sentence in the system prompt explaining what they mean. As it is up to the language model to determine a course of action, nothing is enforced, and the information can be ignored. In this work, considering the setting described above, we ask four questions.

RQ1 Does visible privilege information reduce over-privileged selection compared with no information?

RQ2 How does it compare with, and combine with, a least-privilege instruction?

RQ3 Is the effect due to privilege content rather than to extra text in the tool description, and what form of signal is needed?

RQ4 Does it reduce the escalation that follows a tool failure, and does it cost task completion?

We answer them with 8 models from six families, three run locally and five accessed through a hosted API. Each model was evaluated under five experimental conditions that varied the information provided to the language model in all 544 scenarios at temperature 0. A control adds metadata of the same format that has nothing to do with privilege. Variants of the information (class only, coarse bands, free text, and costs of which 30% are wrong) show which part of the signal is important. We separate three measures: (1) a risk tool as the first choice, (2) a risk tool before all standard tools were tried (the benchmark's definition of over-privileged selection), and (3) any risk tool at all.

The results show that making tool privilege visible reduces premature over-privileged selection on every model where it occurs at a measurable rate, whereas matched irrelevant metadata does not. Privilege information alone often delays rather than prevents escalation, particularly following tool failure. Combining privilege information with a least-privilege instruction is consistently more effective.

Showing Agents the Privilege of Their Tools

and increases the proportion of scenarios completed without using a risk tool, by up to 32.4 percentage points. These findings indicate that visible privilege information is a useful complement to, rather than a substitute for, least-privilege instructions and external enforcement.

The contributions of this work are as follows: (1) A controlled comparison of privilege information, a least-privilege instruction and both on a public benchmark, with matched-metadata and noisy-label controls. (2) A decomposition of over-privileged selection into first choice, premature, delayed and avoided escalation, with completion reported alongside. (3) Privilege annotations (class and cost) for all 3,264 ToolPrivBench tools, drafted blind to the benchmark's role labels and checked against two human raters on separate samples. (4) Evidence from eight models of six families and several sizes on when information helps, when it matches an instruction, and when it does not.

The remainder of this paper is organised as follows. Section 2 provides a brief summary of related work. Section 3 describes the study design, including the benchmark and protocol, the experimental arms, how the privilege annotations were produced and checked, the models, and evaluation measures. Section 4 presents the results for each research question, followed by a breakdown by application domain and the two models that leave little room for improvement. Section 5 discusses what the results mean for access control, Section 6 sets out the limitations, and Section 7 concludes. Appendix A lists every paired contrast with its adjusted p-value.

References (26)