
Deny-ask-allow starter policy
A first set of rules that blocks the dangerous calls, asks about the risky ones and lets reads run.
Illustration of the app. Names and values come from this template.
Start with three layers: deny destructive tools at a low priority number, ask before any write through a connector, and allow known read tools ahead of the ask. In Bello Bot, rules run lowest number first, deny beats ask beats allow on ties, and connectors still need a grant per bot.
How to use this template
- List the connectors your bots have been granted.
- Copy the rules below and replace the tool globs with your connectors' tool names.
- Replay each draft rule over recent tool calls to see what it would change.
- Save the rules as an admin, then watch the activity log for a week.
The template
Copy it, then replace the values in angle brackets with your own.
[
{ "name": "Deny deletes", "effect": "deny", "priority": 10, "tool_glob": "*__delete*", "reason": "Destructive. Do it by hand." },
{ "name": "Deny admin tools", "effect": "deny", "priority": 10, "tool_glob": "*__admin*", "reason": "Admin actions stay with people." },
{ "name": "Allow reads", "effect": "allow", "priority": 40, "tool_glob": "*__get*" },
{ "name": "Allow searches", "effect": "allow", "priority": 40, "tool_glob": "*__search*" },
{ "name": "Allow lists", "effect": "allow", "priority": 40, "tool_glob": "*__list*" },
{ "name": "Ask before anything else", "effect": "ask", "priority": 100, "tool_glob": "*__*", "reason": "Writes need a person." }
]
How the rules interact
- Rules are tried by priority, lowest number first. At equal priority deny beats ask, and ask beats allow. The first matching rule decides.
- A tool call that matches no rule is allowed by policy, but a bot can only use a connector that a person has granted it, so grants are the default gate.
- An ask rule allows the call but forces the approval card, even for a tool that is set to run on its own.
- If the rules cannot be loaded and no last good copy is cached, the call is denied with the reason policy evaluation failed.
Before you save
- Connector tools are named after the connector and the tool, joined by two underscores, such as github__create_issue. The connector name is lowercased and anything that is not a letter or digit becomes an underscore.
- Admins can test a tool call against the current rules, and replay a draft rule over the org's last 200 tool calls to see what it would block, unblock or send for approval before saving it.
- Only org owners and admins can create, change or delete rules.
Why these layers
Deny rules sit at priority 10 so nothing can outrank them by accident. Read, search and list tools are allowed at 40, ahead of the catch-all ask at 100, so everyday lookups do not pile up approval cards. Everything else through a connector asks a person.
Related reading
- Deny-ask-allow policy model
- AI agent governance
- Security controls, from the code
- Compare Bello Bot with other AI agent products
- Guides to running AI agents safely
- The Bello Bot blog
- Free AI agent governance grader
Questions
Will the catch-all ask rule block built-in tools?
The glob *__* matches connector tools, whose names contain two underscores. Check your own tool names in the activity log or with the policy test before saving.
Who can save these rules?
Only org owners and admins can create, change or delete rules.
Keep reading
Deny-ask-allow policy model
The deny-ask-allow model gives each AI agent tool rule one of three effects, and deny beats ask beats allow on ties.
Designing tool governance for AI agents
A practical guide to governing AI agent tool calls: rule matching, deny over ask over allow, failing closed, per-bot grants and network guards against SSRF.

Engineering MCP approval rules
Copyable policy rules for engineering bots on MCP connectors like GitHub and Linear: deny deletes and force pushes, ask before merges, allow reads.
Security
Approvals, policy engine, network guard, Mailman and secrets.
Try Bello Bot with your team
Public beta. Bring your own model keys, invite your team, and approve what your bots do.