- An evaluation sends a batch of sample tool calls through a policy once and shows the outcome for each call and each rule. Nothing is saved.
- A test suite keeps test cases, which are tool calls and the outcomes you expect, so you can rerun the same checks every time you change the policy.
Evaluate a Policy
Evaluate a policy to try out tool calls, or to check a draft before you accept it. An evaluation is a dry run: nothing is saved, and no workflow is recorded. Evaluating a draft doesn’t take or change its editing hold. Before you begin, you needpolicy Read. To choose which agent to evaluate as, you also need agent Read.
- Open the evaluation. Use one of these:
- On a policy’s detail page, select Run Evaluation.
- In the policy wizard, while editing a draft, select Evaluate Draft. This saves the draft first.
- On the Evaluate Tool Calls page, under Evaluate Against, choose Live Policy or Draft. Draft appears only when the policy has a draft.
- Optional. In Evaluate as Agent, choose one of the policy’s active agents. The policy’s oldest active agent is selected by default.
- Add tool calls. For each call, enter a Tool Name, and add any Arguments as name and value pairs. Select Add Tool Call for more calls. A batch can hold up to 100 calls.
- Select Run Evaluation.
namespace.tool, such as kubectl.rollout_restart. The text before the first dot is the tool’s namespace. To start from the policy’s own rules, select Fill from Rules. This replaces the batch with one call per rule.
After a run, change any call and select Run Again. Switching between Live Policy and Draft clears the result.
Read the Results
The results have three parts:- The batch verdict. The outcome for the whole batch, which is the most restrictive outcome of its calls. It also shows the agent the batch was evaluated as and the reason returned to the agent.
- Per Call. Each call’s outcome, and the rule that decided it, or a note that no rule matched and the fallthrough decided it.
- Per Rule. For each rule, how many calls it decided, whether it matched but a stricter rule won, or whether it matched nothing.
Save Evaluated Calls as a Test Case
Withpolicy Write, you can keep an evaluated batch as a test case. The outcomes from the evaluation become the case’s expectations.
- Select Save as Test Case to add the case to this policy’s test suite. Check the expectations Mezmo filled in, then select Save Case.
- Select Save to Library to save the case to the Test Cases library.
Test a Policy
Each policy has one test suite. Mezmo creates it, with no cases, when you create the policy, and deletes it when you delete the policy. Run the suite against a draft before you accept the draft, to confirm that your change doesn’t alter decisions you rely on. Viewing a test suite needspolicy Read. Adding, editing, or running cases needs policy Write. Running needs Write because Mezmo records each run.
To open a policy’s test suite, open the policy’s detail page and select Open Suite on the Test Suite card. You can also select Test Suite from the policy’s row menu on the Policies page.
Test Cases and Expectations
A test case is one or more tool calls sent together, the same way an agent sends them. You can set expectations at two levels:- The whole request. The outcome that the case as a whole must produce, which is the most restrictive outcome of its calls.
- Each call. The outcome that one call must produce, and optionally the code its decision must return.
The request expectation must be at least as restrictive as every call expectation. For example, a case can’t expect Allow for the request when one of its calls expects Deny. Mezmo won’t save a case like that, because it could never pass.
Add a Test Case
- On the policy’s test suite page, select Add Case.
- Enter a Name and an optional Description.
- Choose what the whole request should roll up to.
- For each tool call, enter the Tool Name and the Tool Namespace, which is the MCP server the tool comes from. Add any Arguments. A call with no namespace is evaluated under the namespace
default. - Optional. For each call, choose what the call should be, and enter an Expected Code.
- Select Add Tool Call for each more call you need.
- Select Save Case.
- Select Add from Library to copy saved cases from the Test Cases library.
- Save evaluated calls with Save as Test Case. See Save Evaluated Calls as a Test Case.
- Save a recorded workflow. On a workflow’s detail page, select Save workflow as > Policy Test Case. See Agent Governance Workflows.
- Add a tool call your agents have made from Candidate Rules. See Add a Test Case on the Candidate Rules page.
Run the Test Suite
- On the policy’s test suite page, under Run Against, choose Live Policy, Draft, or Both. Draft and Both appear only when the policy has an open draft. Both is the default when they do.
- Select Run Suite.
Reuse Test Cases Across Policies
The Test Cases library holds test cases that belong to no policy. Save a case there once, then copy it into any policy’s test suite or run it through any policy’s evaluation. To open the library, select AI Governance in the left navigation, then select Test Cases. A test suite holds its own copy of each case. Editing or deleting a case in the library never changes a suite that already holds a copy. To add a case to the library, use one of these:- On the Test Cases page, select New Test Case, build the case, and select Save to Library.
- On an evaluation’s results, select Save to Library.
- On a workflow’s detail page, select Save workflow as > Test Case Library. The case records which workflow it came from.
- In a test suite, select Export to Library from a case’s Edit Case menu.
- Evaluate: choose a policy and open its evaluation with the case’s tool calls. The case’s expectations aren’t carried over. With
policyRead only, this is the only option. - Add to Suite: choose a policy and copy the case into its test suite.
- Delete Case: permanently delete the case from the library.

