create_rule
Create an Outlook inbox rule that moves, deletes, marks read, or junks future incoming mail matching sender or subject conditions; mail already received is unaffected.
Instructions
Create an inbox rule that acts on future incoming mail matching the conditions (at least one of fromAddresses, senderContains, subjectContains). Actions: move (needs destinationFolderId, an id or a name like archive), delete (to Deleted Items), markRead, junk (to Junk Email). Does not affect mail already received.
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": {
"displayName": "<displayName>",
"action": "<action>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| displayName | Yes | ||
| fromAddresses | No | Exact sender email addresses | |
| senderContains | No | Text the sender address must contain, e.g. "@example.com" | |
| subjectContains | No | ||
| destinationFolderId | No | Folder id or well-known name; required for action "move" | |
| stopProcessingRules | No | Stop evaluating later rules after this one (default true) |