list_messages
Lists emails from a specified Outlook mail folder by name, alias, or ID; supports unread, flagged, focused, limit, cursor, and offline cache options.
Instructions
List emails in a mail folder (accepts folder ID, display name/prefix, or well-known alias such as 'inbox', 'sent', 'drafts', 'archive', 'trash', 'junk'). Usually 1-2 Graph requests. The first call on a large folder syncs at most 40 pages (sync_complete: false until done); unread/flagged/focused filters scan at most 20 pages. offline: true reads the cache only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | Opaque next_cursor from a previous response | |
| folder | No | Folder name, alias, or ID (default 'inbox') | |
| unread | No | ||
| compact | No | Default true. Set false for every cached field (no attachment bytes) | |
| flagged | No | ||
| focused | No | ||
| offline | No | Read the local cache only; no Graph request. |