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.
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>",
"match": "<match>",
"actions": "<actions>"
},
"name": "create_email_rule"
}
}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 |