change_rule
Enable, disable, or delete a Mail rule by name; deleting is reversible because undo restores the rule.
Instructions
Switch one of Mail's rules on or off, or delete it (undo puts it back). Switching one on asks the user in a window on the Mac.
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": {
"name": "<name>",
"action": "<action>"
},
"name": "change_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The rule's name, as list_rules gives it. | |
| action | Yes | "enable", "disable" or "delete". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| rule | No | ||
| trial | No | ||
| status | Yes | preview, awaiting_approval, created, cancelled, enabled, disabled or deleted. | |
| undo_token | No |