create_rule
Create an auto-categorization rule that matches emails by sender, recipient, or subject using case-insensitive substrings, then applies actions such as move, mark read, or flag.
Instructions
Create an auto-categorization rule. Conditions use case-insensitive substring matching.
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 | Rule name for easy reference | |
| actions | Yes | Actions to perform on matches | |
| enabled | No | Whether the rule is active | |
| conditions | Yes | Conditions to match emails against | |
| match_mode | No | 'all' = AND, 'any' = OR | all |