search_messages
Search Outlook messages by keyword or KQL across all folders or a specific folder, returning the newest matching summaries first.
Instructions
Find specific messages by keywords or KQL, newest first, across all folders or
within one. Examples: from:alice@contoso.com subject:invoice,
hasattachments:true, received>=2026-09-01. Returns at most 50 summaries.
folder: a well-known name or folder id to search only there. For a bulk action that needs every matching id, use search_message_ids. For all mail from one address, messages_from_sender is cheaper and complete.
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": {
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| query | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |