Search Outlook
search_outlook_messagesSearch the user's connected Outlook mailboxes and return matching messages, newest first: from, to, subject, date, a short preview, the mailbox it came from, and a web_link that opens the message in Outlook. query is Outlook search (KQL): plain words match anywhere, and from:jane@acme.com, to:jane@acme.com, subject:budget, hasattachments:true and received>=2026-09-01 narrow it. Pass folder='sentitems' for mail the user sent. Use this, not the Gmail tools, for Outlook mailboxes. If it reports Outlook is not connected, give the user the link it returns.
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_outlook_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search, e.g. 'from:jane@acme.com budget'. | |
| folder | No | Limit to one folder: 'inbox', 'sentitems', 'archive', or an id from list_outlook_folders. Omit for all mail. | |
| account | No | Email address or id:<mailbox id> of one connected Outlook mailbox. Omit to use every connected mailbox. | |
| max_results | No | Max messages to return (default 10, max 50). |