Test Rule (dry run)
test_ruleDry-run a rule's condition_expr against a SYNTHETIC trigger payload — reports whether it WOULD have fired, but NEVER dispatches the action (no report generated, no team run, no message sent, no inbox write). Use this immediately after create_rule to sanity-check the condition before it starts evaluating against real events. Pass sample_payload_override to test against specific field values (e.g. {price_change_pct: 12}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | Identifier of the rule to dry-run, from create_rule or list_rules. | |
| sample_payload_override | No | Merged over the built-in synthetic payload for this rule's trigger_type — lets you test a specific value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| _meta | Yes | Provenance envelope — data lineage for every MCP response | |
| reason | Yes | ||
| rule_id | Yes | ||
| would_fire | Yes | ||
| action_type | Yes | ||
| synthetic_payload | Yes |