create_rule
Creates a server-side Outlook inbox rule to sort incoming mail automatically, enabling future messages to be moved, categorized, marked read, or sent to Deleted Items without the server running.
Instructions
Create a server-side inbox rule so future mail is sorted without this server running. Check list_rules first to avoid a duplicate.
Conditions are OR-ed within a field and AND-ed across fields, as Outlook evaluates them. At least one condition and one action are required. from_addresses: exact sender addresses. sender_contains: substring of the From field, which catches a whole domain. move_to: a well-known folder name or a folder id from list_folders / create_folder. delete_to_deleted_items sends matches to Deleted Items; nothing is permanently deleted, and forwarding rules are not supported. A rule applies only to mail arriving from now on; use archive_matching or the other cleanup tools for mail already in the mailbox.
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>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| enabled | No | ||
| move_to | No | ||
| sequence | No | ||
| mark_as_read | No | ||
| body_contains | No | ||
| from_addresses | No | ||
| has_attachments | No | ||
| header_contains | No | ||
| sender_contains | No | ||
| stop_processing | No | ||
| subject_contains | No | ||
| assign_categories | No | ||
| delete_to_deleted_items | No |