← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
How Do You Declare Scope for an AI Agent?
The short answer
You declare scope by writing down, as a config supplied with the log, the tools each agent may use, the tools allowed to mint tokens, the destinations it may send to, and the privilege level it holds — before you need to judge its actions. With no declared scope, scope-escape, token-forge, undeclared-egress and privilege-escalation findings are impossible, and an honest report says exactly that rather than pretending the agent was checked. Check your own log with the free log scan.
What is declared scope for an AI agent?
Declared scope is the machine-readable boundary statement for an agent: a global allowed_tools list, per-agent allowed_tools lists (which win over the global one), auth_flow_tools naming the tools permitted to mint tokens, an egress allowlist, and the declared privilege level. BoundaryVault's detector compares every logged action against that declaration, case-insensitively on tool names.
Start from what the agent is for
Write the declaration from the job description, not from the log. List the tools the agent needs to do its stated job — for a support agent, perhaps ticket lookup, reply drafting and account summary — and stop there. Tools added 'in case' widen the boundary without a reason; tools the agent actually uses but nobody declared create escape findings that are really declaration gaps. Both errors are visible in the first scan, which is the point: the declaration is a hypothesis about the job, and the log is the evidence that tests it.
Per-agent lists beat one global list
In a multi-agent system a single global list quietly grants every agent every tool. The scope config supports per-agent allowed_tools under each agent id, and the per-agent list wins over the global one where it exists. Use the global list only for genuinely universal tools, and give specialists — a payments helper, a research sub-agent — their own narrow lists. The same discipline applies to auth_flow_tools: name the exact tools allowed to mint or refresh tokens, per the flow you designed, so a mint_token call anywhere else reads as the token-forge pattern it is.
Egress and privilege are part of scope, not extras
Teams declare tools and forget destinations. Yet undeclared-egress — a send to a destination outside the declared allowlist — is a high-severity pattern, and destinations are where data actually leaves. List the hosts and endpoints the agent may send to, as precisely as your framework allows. Declare privilege the same way: the level the agent holds, so a grant beyond it registers as privilege-escalation. A declaration that covers tools, tokens, destinations and privilege is complete; one that covers only tools leaves three of the four high-severity doors unjudged.
Version it, and keep old versions with old logs
Scope changes as agents evolve — a tool is renamed, a destination is added, a sub-agent is introduced. Each change is a new version of the declaration, and the version in force is part of the evidence for any log from that period. Keep superseded versions beside the logs they governed; judging last month's actions against this month's wider declaration erases real escapes, and judging them against a narrower old one manufactures false ones. When a scan produces an escape finding, the first review question is always whether the declaration or the agent drifted.
A worked example: Willow & Finch Travel
Example — fictional operator, illustrative numbers. Willow & Finch Travel, a fictional itinerary-planning operator, ran three agents under one global list of 34 tools and no egress declaration. Their first scoped review split the declaration into per-agent lists of 9, 12 and 6 tools, named 2 auth-flow tools, and listed 5 egress destinations. Replaying 96,000 actions over 14 days against the new declaration returned 6 findings: 4 scope escapes by a research sub-agent using a booking tool it had inherited, and 2 undeclared-egress sends to a maps endpoint nobody had listed. Two declaration fixes and one inheritance fix later, the next 14-day replay was clean.
| Measure | Figure | What it showed |
|---|---|---|
| Tools in the old global list | 34 | Every agent could use every tool |
| Per-agent lists after the split | 9 / 12 / 6 tools | Plus 2 auth-flow tools, 5 egress destinations |
| Actions replayed | 96,000 over 14 days | Judged against the new declaration |
| Findings | 6 | 4 scope escapes, 2 undeclared egress |
See how the plans differ on log size and batch work on the pricing page, and how the detector reads a log in the detector docs.
The checklist: five actions
- Write scope from the job. List only the tools each agent needs for its stated purpose; justify every addition in the config's history.
- Split per agent. Give each agent its own allowed_tools list; keep the global list for genuinely universal tools only.
- Name the auth flow. Declare exactly which tools may mint, refresh or rotate tokens, and treat any other minting call as a finding to review.
- Declare destinations and privilege. Add the egress allowlist and the privilege level, so all four boundary dimensions are judged.
- Version every change. Snapshot the declaration with each period's logs, and review escapes as declaration drift or agent drift — one of the two, on the record.
Run the free log scan · More agent-security tools from Ingenious AI
Related guides
Allowed-Tools Lists for AI Agents, Explained
Per-Agent vs Global Allowed Tools: Which List Judges an Action?
How to Write an Egress Allowlist for an AI Agent
How Long Should You Keep AI Agent Logs? An Audit-Trail Retention Guide
Agent Log Forensics: Finding Credential Grabs After the Fact
Declaring scope for an agent that changes weekly
Fast-moving teams object that their agents change too quickly for declarations to keep up. The objection has it backwards. A changing agent is exactly the case where the declaration earns its keep, because the diff between versions is the review: this sprint the agent gained a payments tool, so the scope config's diff shows the tool, the egress list shows the processor's endpoint, and the privilege line names the new level — three lines a reviewer can judge in a minute. Without the declaration, the same change is invisible until a scan or a customer surfaces it.
Keep declarations in the same review flow as code. A scope change merged without review is a permission granted without a decision, and the log will eventually quote it back to you. The config is small; the habit is the whole cost.
Sources
Frequently asked questions
What is declared scope for an AI agent?
The config supplied with the log that states what an agent may do: allowed_tools (global and per-agent), auth_flow_tools, the egress allowlist and the privilege level. BoundaryVault judges every logged action against it.
What happens if I declare no scope?
Then scope-escape, token-forge, undeclared-egress and privilege-escalation findings are impossible, and the report does not pretend otherwise. Pattern checks that need no declaration, like credential-shaped arguments, still run.
Which wins, a per-agent list or the global list?
The per-agent allowed_tools list wins over the global one for that agent. Tool-name comparison is case-insensitive.
How often should scope be updated?
Whenever the agent's job genuinely changes — a tool added, renamed or removed, a new destination, a new sub-agent. Each update is a new version, kept with the logs from its period.
Can a scope escape be innocent?
Yes, and most are: a renamed tool, a stale declaration, a sub-agent inheriting a wider set. The finding records what happened — tool, agent, timestamp, index — not intent; intent is the operator's call during review.