Update a rule
update_ruleChange the wording or scope of a rule the user already saved. Use this when they correct or narrow an existing rule, rather than calling add_rule again, which would leave both versions in force. Call list_rules first to get the rule_id; never guess one. Pass only the fields that change.
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>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The new wording. Omit to leave it unchanged. | |
| scope | No | The new scope: 'always', or a project or activity name. Omit to leave it unchanged. | |
| rule_id | Yes | The id of the rule to change, from `list_rules`. |