policy Read, and creating or changing them needs policy Write. See Permissions.
How a Policy Decides
A policy holds a set of rules and a fallthrough:- Each rule matches tool calls by their namespace, tool name, arguments, or any combination of them, and gives one outcome. Rule order doesn’t matter.
- When several rules match a call, the most restrictive outcome wins. Deny outranks Require Approval, which outranks Allow. An approval can’t override a matching Deny rule.
- The fallthrough decides every call that no rule matches. A policy with no rules sends every call to its fallthrough.
- A request that holds several tool calls gets the most restrictive outcome of all its calls.
Create a Policy
Create a policy before you register the agents it governs, so each agent has a policy from its first tool call. Before you begin, you needpolicy Write.
- On the Policies page, select New Policy.
- On the Basics step, enter a Policy Name and an optional Description, then select Continue. See Policy Fields.
- On the Rules step, select Add Rule for each rule you need, then select Continue. To start a rule from a tool your agents have already called, select From candidate rules. See Write Rules and Add a Rule From the Policy Editor.
- On the Fallthrough step, choose what happens to calls that no rule matches, then select Continue. See Choose the Fallthrough.
- On the Approvers step, choose an Approving role and any Slack or Microsoft Teams channels to notify, then select Continue. This step is optional. See Approvers.
- On the Review step, read any validation findings, then select Create Policy.
role Read, the wizard skips the Approvers step.
Review Findings
The Review step checks the policy before you create it. Findings don’t stop you from saving, but each one points to a likely mistake:Write Rules
Each rule has these parts:- Optional. A Name, shown wherever the rule is listed, such as on the dashboard and in evaluation results. Up to 128 characters.
- Match On: what the rule matches. Choose one or more of Tool Namespace, Tool Name, and Tool-Call Arguments. Every selected match must hold for the rule to apply.
- Outcome When This Rule Matches: Allow, Require Approval, or Deny.
- For Require Approval and Deny, an optional Code and Message Shown to the Caller. Both are returned to the agent, so the team that built it can handle the result. See Policy Fields.
Match by Namespace or Tool Name
A tool’s namespace is the MCP server it comes from, such ask8s_mcp. A tool name is one tool, such as delete. Tool names can repeat across MCP servers, so combine Tool Name with Tool Namespace to match one specific tool.
For each, choose a Comparison and enter the value:
- is (
eq) or is not (neq) compares against one value. - is one of (
in) or is not one of (nin) compares against a list. Press Enter after each value. A list can hold up to 25 values.
Match by Arguments
To match the values an agent passes to a tool, select Tool-Call Arguments and add up to 25 argument rows. Each row has an argument name, a comparison, and a value.
An argument name is up to 256 characters of printable ASCII, without spaces or periods, such as
path or -i. To match a key inside an object argument, join the names with periods, such as options.force. Values are up to 512 characters. Values of true and false are compared as booleans, and numeric values as numbers.
Choose the Fallthrough
The fallthrough decides calls that no rule matches. The wizard has no default, so you choose one:- Deny Outright refuses the call with your code and message.
- Send for Approval holds the call for an approver.
- Allow lets the call run. Choose Allow only for a policy whose rules exist to block or hold specific calls.
NO_MATCHING_RULE, and the Message Shown to the Caller starts as “No rule in this policy covers this request.” You can change both. Allowed fallthrough calls are still recorded as workflows.
Approvers
An approving role decides who can approve or deny the calls that a policy holds. A call is held when a rule’s outcome is Require Approval, or when the fallthrough is Send for Approval. Naming an approving role is optional but recommended, so that held calls have a clear owner. If a policy names no role, anyone withworkflow Write can approve or deny its calls. Seeing and choosing approving roles needs role Read.
Assign an Approving Role
On the Approvers step, choose a role from Approving role, or leave it as Anyone can approve. If the right role doesn’t exist and you haverole Write, select Create a role. Enter a Role name and, optionally, a role to Inherit from, then select Create role. The new role can approve or deny tool calls and view policies, and the wizard selects it. To create a role with more permissions, use Create a role the long way, which opens the full role form in a new tab. See Role-Based Access Control.
Send Approval Notices to Slack or Microsoft Teams
On the Approvers step, under Approval notifications, you can add Slack channels and Microsoft Teams channels that receive a notice each time the policy holds a call. Adding channels needsintegration Manage. Without it, the step shows only the approving role. A policy can notify up to 10 channels, counting both kinds together. Approvers can approve or deny from the notice. For the setup and how approvers use the notices, see:
View a Policy
On the Policies page, select View on a policy’s row to open its detail page. The list also shows each policy’s rule count, agents, approvers, fallthrough, draft state, warnings, and created date. From a row’s menu, you can also open Run Evaluation or Test Suite. The detail page shows:- Created: when the policy was created
- Approvers: the approving role, or None, when you have
roleRead - Approval notifications: the Slack and Microsoft Teams channels the policy notifies, when you have
integrationManage - Agents: the agents that use the policy, when you have
agentRead - Test Suite: the policy’s test suite and its last run. See Test a Policy.
- Compiled Rules: each rule as a sentence, and the fallthrough
- Draft: when a draft is open, select View Draft to preview its rules
- Revision History: every revision of the policy. See Revision History.
Change a Policy
To change a policy’s rules, fallthrough, name, description, approving role, or notification channels, create a draft, edit it, and accept it. Accepting a draft creates a new revision, and the change takes effect from the next tool call. Changing a policy needspolicy Write.
- Open the policy’s detail page.
- In the draft banner, select Create Draft. The policy wizard opens in draft mode.
- Make your changes in the wizard.
- Optional. To check your changes before they take effect, select Evaluate Draft. This saves the draft and opens an evaluation of it. See Evaluate a Policy.
- Select Save and Accept Draft to apply your changes, or Save Draft to keep working on them later.
Draft Holds
A policy has at most one draft, and one editor holds it at a time. Your hold lasts five minutes. It renews while you have the draft open in the wizard and each time you save.- While another editor’s hold is active, you can’t edit, accept, or discard their draft. The banner shows when their hold lapses.
- After another editor’s hold lapses, you can select Take Over Draft or Discard Draft. Taking over replaces their unaccepted changes with a fresh copy of the current policy. Their work isn’t merged.
- After your own hold lapses, your changes stay in the draft. Select Continue Editing to renew your hold. Until you do, another editor can take the draft over.
Revision History
Every accepted draft, fork, and revert adds a revision to the policy’s Revision History, at the bottom of its detail page. The history is append-only: restoring an older revision adds a new revision instead of removing later ones. Workflows keep a record of the rules that decided them. Each revision shows how it was made:- Created: the policy’s first revision
- Edited: an accepted draft
- Forked: an accepted draft that started from an older revision
- Reverted: an immediate revert to an older revision
Restore a Previous Revision
You can bring back an older revision’s rules and fallthrough in two ways. Both keep the policy’s current name, description, approving role, and notification channels, and both needpolicy Write.
- Fork into Draft opens a draft that starts from the older revision, so you can review and edit it before it takes effect. It isn’t available while another draft is open.
- Revert to This restores the older revision right away as a new revision, with no draft or review step.
Fork a Revision Into a Draft
- In the policy’s Revision History, find the revision you want.
- Select Fork into Draft. The policy wizard opens with the draft.
- Review and edit the draft, then select Save and Accept Draft.
Revert to a Revision
- In the policy’s Revision History, find the revision you want.
- Select Revert to This.
- Select Yes, Revert.
Delete a Policy
Deleting a policy also deletes its drafts, revisions, and test suite. Workflows that the policy decided keep their own record. Deleting a policy needspolicy Manage.
Before you begin, assign the policy’s agents a different policy. Mezmo doesn’t delete a policy that active agents still use. You also can’t delete a policy while another editor holds an active draft of it.
- Open the policy’s detail page.
- Select Delete Policy.
- Confirm the deletion.
Policy Fields
A policy can hold up to 250 rules.
If you leave Code and Message Shown to the Caller empty on a rule, Mezmo returns a default code and message:

