Update a rule
update_ruleReplace an entire rule by sending its full conditions and actions, since omitted fields are dropped. Read the existing rule first to preserve current settings.
Instructions
Replace a rule’s conditions and actions. This overwrites the whole rule, so send the complete set — anything omitted is dropped, not preserved. Read the current rule with list_rules first.
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": {
"id": "<id>",
"conditions": "<conditions>",
"actions": "<actions>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the rule to replace. | |
| stage | No | Defaults to null, the normal stage. | |
| actions | Yes | The complete action set, not a partial update. | |
| conditions | Yes | The complete condition set, not a partial update. | |
| conditionsOp | No | Defaults to "and". |