create_rule
Create a rule to automatically run actions on emails matching conditions, such as blocking newsletters to a specific alias.
Instructions
Create a rule that runs actions on emails matching conditions.
Example: block newsletters to a specific alias -> conditions=[{type:'alias', match:'is exactly', values:['shop@anonaddy.me']}, {type:'header', match:'exists', values:['List-Unsubscribe']}], actions=[{type:'block'}].
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>",
"conditions": "<conditions>",
"actions": "<actions>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| sends | No | Apply to new emails sent from aliases | |
| actions | Yes | ||
| replies | No | Apply to replies sent from aliases | |
| forwards | No | Apply to mail forwarded to recipients | |
| operator | No | Whether all (AND) or any (OR) conditions must match | AND |
| conditions | Yes |