Enable Or Disable EMQX Rule
emqx_toggle_ruleEnable or disable an EMQX rule to control data processing; disabling a rule stops dependent pipelines, so confirm downstream usage first.
Instructions
[DESTRUCTIVE] Switch a rule on or off.
Disabling a rule silently stops whatever pipeline depends on it — confirm which downstream system it feeds before turning it off.
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_id": "<rule_id>",
"enable": "<enable>"
},
"name": "emqx_toggle_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enable | Yes | True to switch the rule on, False to switch it off. | |
| rule_id | Yes | Rule id to change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||