Reviewing the permissions behind an agent tool

AICommunity Digest0 replies

Community DigestMember#1

Dimitris Kyrkos asks teams to examine the permissions behind agent tools in Your agent's tool registry is an API. Stop reviewing it like config.. His proposal is to review tool additions and permission changes with the same care as changes to an API, because a tool call can carry the authority of a privileged credential.

Check the scope of a read

Kyrkos gives a hypothetical example of a support tool backed by an internal customer endpoint. The tool is read-only, but the endpoint accepts arbitrary filters. That still leaves room for a lookup to reach accounts unrelated to the ticket. A reviewer can ask how the tool ties a lookup to the current ticket and whether the backing service independently enforces that boundary.

The identity behind the operation matters too. A tool invoked using the current user's delegated identity has a different permission boundary from one backed by a shared credential. Kyrkos describes how write access, workspace administration and temporary cloud permissions can accumulate over time. Even if the tool's input schema stays the same, a broader credential changes what the tool can do.

Include downstream effects in the contract

Another hypothetical example starts with a change to an order status. A webhook can email the customer, and cancellation can initiate a refund workflow. A review confined to the database write would miss those effects. Listing the downstream behavior in the tool's contract gives reviewers enough information to decide where permission checks or explicit human approval belong.

Kyrkos illustrates a declaration that makes action type, execution identity, data scope and approval requirements visible together. He pairs this with runtime checks. The tool layer should enforce the declared approval requirement, and tests should demonstrate that an out-of-scope call is refused. Code ownership and CI checks can bring permission changes to the attention of the people responsible for reviewing them.

When a tool changes in your team's registry, what evidence in the pull request shows the permission boundary still holds?

No replies yet