Update inbox rule
cooper_update_ruleUse this to change a stored inbox rule. Requires auth and message_update. Replacing actions with forward_to or auto_reply, or enabling a disabled rule that has them, also needs message_send. HTTP 403 permission_denied with param actions otherwise. Disabling a rule or removing those actions stays on message_update. Inputs: inbox_id (required), rule_id (required), and any of name, enabled, position, conditions, actions, stop_processing. Omitted fields stay as they are. forward_to is checked again. Returns the updated inbox_rule. An unknown rule is HTTP 404 rule_not_found. A bad body is HTTP 400 invalid_rule. A disallowed forward_to is HTTP 400 forward_target_not_allowed.
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": {
"inbox_id": "<inbox_id>",
"rule_id": "<rule_id>"
},
"name": "cooper_update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Replacement name, 1 to 80 characters. | |
| actions | No | Replacement actions. Replaces the stored object. | |
| enabled | No | Turn the rule on or off. | |
| rule_id | Yes | Rule id (rul_…). | |
| inbox_id | Yes | Inbox id (inb_…), username, or full email address owned by this key | |
| position | No | Replacement sort key. Lower numbers run first. | |
| conditions | No | Replacement conditions. Replaces the stored object. | |
| stop_processing | No | Whether a match stops later rules. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule id. Pass it as rule_id. | |
| name | No | Human-readable name. | |
| object | No | Object type name, such as list, message, or thread. | |
| actions | No | What happens to a matching message. | |
| enabled | No | True when the object is active. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| position | No | Order the rule runs in. Lower runs first. | |
| client_id | No | Caller idempotency key stored with the object, or null. | |
| conditions | No | What a message must match. | |
| created_at | No | ISO-8601 time the object was created. | |
| last_error | No | Last action error, or null. | |
| updated_at | No | ISO-8601 time the object last changed. | |
| match_count | No | How many messages matched. | |
| last_matched_at | No | ISO-8601 time of the last match, or null. | |
| stop_processing | No | When true, later rules are skipped after a match. |