Inbox Rules
manage-rulesList, create, update, reorder, or delete server-side Outlook inbox rules, with dry-run previews for create/update and optional rule details.
Instructions
Server-side inbox rules (destructive: covers delete; dryRun previews create/update). Rules run on the Exchange server whichever client is open. action=list (default) returns rules with id/name/sequence; includeDetails: true adds conditions/actions/exceptions. action=create builds a rule from condition params (12, e.g. fromAddresses, containsSubject, bodyContains, hasAttachments, importance, sensitivity), action params (9, e.g. moveToFolder/copyToFolder — folder name, nested path like Triage/Delete, or ID — forwardTo, redirectTo, assignCategories, markAsRead, delete) and optional except* exceptions. action=update patches fields by ruleId or ruleName. action=reorder changes priority via sequence (lower runs first). action=delete removes a rule. The recipient allowlist applies to forwardTo/redirectTo. There is no permanentDelete action. Changes count against the session limit (OUTLOOK_MAX_MANAGE_RULES_PER_SESSION, else OUTLOOK_MAX_EMAILS_PER_SESSION); 0 refuses them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rule name (action=create required, action=update to rename) | |
| action | No | Action to perform (default: list) | |
| dryRun | No | Preview only (action=create or update): shows the rule without creating or changing it. Other actions refuse dryRun and change nothing. Default false. | |
| ruleId | No | ID of existing rule (action=update/delete) | |
| ruleName | No | Name of existing rule (action=update/reorder/delete) | |
| sentCcMe | No | Match emails where I am in CC (action=create/update) | |
| sentToMe | No | Match emails sent to me (action=create/update) | |
| sequence | No | Execution order, lower = higher priority (action=create default: auto, action=reorder required) | |
| forwardTo | No | Comma-separated emails to forward matching messages to (action=create/update) | |
| isEnabled | No | Enable/disable rule (action=create default: true, action=update) | |
| importance | No | Match emails with this importance (action=create/update) | |
| markAsRead | No | Mark matching emails as read (action=create/update) | |
| redirectTo | No | Comma-separated emails to redirect matching messages to (action=create/update) | |
| displayName | No | Alias for `name` (matches Graph's own `displayName` field). | |
| sensitivity | No | Match emails with this sensitivity (action=create/update) | |
| bodyContains | No | Comma-separated body text keywords (OR logic) (action=create/update) | |
| copyToFolder | No | Folder to copy matching emails to: a name, a nested path like `Projects/Backup`, a well-known name, or a folder ID (action=create/update) | |
| moveToFolder | No | Folder to move matching emails to: a name, a nested path like `Triage/Delete`, a well-known name (e.g. `archive`), or a folder ID (action=create/update) | |
| sentOnlyToMe | No | Match emails where I am the only recipient (action=create/update) | |
| deleteMessage | No | Move matching emails to Deleted Items (action=create/update) | |
| fromAddresses | No | Comma-separated sender emails to match (action=create/update) | |
| hasAttachments | No | Match emails with attachments (action=create/update) | |
| includeDetails | No | Include detailed conditions, actions, and exceptions (action=list) | |
| markImportance | No | Set importance on matching emails (action=create/update) | |
| senderContains | No | Comma-separated partial sender matches (action=create/update) | |
| containsSubject | No | Comma-separated subject keywords (OR logic). e.g. "invoice, receipt, payment" (action=create/update) | |
| sentToAddresses | No | Comma-separated recipient emails to match (action=create/update) | |
| assignCategories | No | Comma-separated Outlook categories to assign (action=create/update) | |
| isAutomaticReply | No | Match automatic reply emails (action=create/update) | |
| recipientContains | No | Comma-separated partial recipient matches (action=create/update) | |
| exceptBodyContains | No | Comma-separated body keywords to exclude (action=create/update) | |
| exceptFromAddresses | No | Comma-separated sender emails to exclude (action=create/update) | |
| stopProcessingRules | No | Stop evaluating subsequent rules (action=create/update) | |
| exceptHasAttachments | No | Exclude emails with attachments (action=create/update) | |
| exceptSenderContains | No | Comma-separated partial sender matches to exclude (action=create/update) | |
| bodyOrSubjectContains | No | Comma-separated keywords matching body OR subject (OR logic) (action=create/update) | |
| exceptSubjectContains | No | Comma-separated subject keywords to exclude (action=create/update) |