Dry-Run Rule
dry_run_ruleReplay a candidate rule against the recent audit log without firing actions. Shows how many audit events the rule would have matched and the details of each match. Use to test a rule before saving. sampleDays clamped to [1, 90], maxResults clamped to [1, 100]. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rule": "<rule>"
},
"name": "dry_run_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | The rule definition to test — JSON object with the same shape as a rule upsert request (scope, name, trigger, conditions, actions, executionMode, etc.). | |
| maxResults | No | Max matches to return (1-100, default 25). | |
| sampleDays | No | Days of audit history to scan (1-90, default 30). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| dryRun | No |