create_email_rule
Create a rule that triggers actions when incoming emails match conditions. Actions: forward, auto_reply, webhook, flag, move, mcp_tool, log, reject.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name (unique) | |
| stop | No | Stop processing further rules after this one matches (default: false) | |
| match | Yes | Match conditions (ALL must match). Use from, domain, subject, subject_regex, body_contains, has_attachments, to, header. | |
| actions | Yes | Actions to execute when rule matches | |
| priority | No | Priority (lower = evaluated first, default 100) | |
| description | No | What this rule does |