Test an automation rule
test_ruleCheck whether a draft or saved rule (the shape get_rule returns) would match a sample message, and which actions would run. Nothing is sent to customers or saved to the workspace. For an intent rule the same AI check as live runs within the workspace's test limits (it uses one test from that allowance), only for an owner or admin whose connection may also make changes; with an API key or a Read-only connection only the keywords are checked. conditions.hours limits a rule to business hours or to outside them, e.g. {"tz":"Asia/Jakarta","days":["mon","tue","wed","thu","fri"],"from":"09:00","to":"17:00","when":"outside"} for an away message (to may be 24:00; from > to spans midnight).
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>",
"sample": "<sample>"
},
"name": "test_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | The rule: trigger, conditions, actions (name optional). | |
| sample | Yes |