ensure_inbox_rule
Idempotently create an inbox rule that moves messages from a sender matching a substring to a specified folder. Creates the folder if it does not exist.
Instructions
Idempotently provision one inbox rule. THE ONLY WRITE TOOL.
Creates (or converges) a rule: messages whose sender matches
from_contains are moved to folder move_to_folder (created if
missing). Safe to run repeatedly — an already-correct rule results in
zero write calls; never duplicates rules or folders.
Disabled unless the server runs with OUTLOOK_MCP_ENABLE_WRITE=1 (which also requires re-consenting to write scopes on next sign-in).
Args: name: Rule display name — the idempotency key. from_contains: Substring matched against the sender address/name. move_to_folder: Target folder display name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| from_contains | Yes | ||
| move_to_folder | Yes |