Microsoft 365 Search Emails
m365_search_emailsUse this when the user wants to find emails in their Microsoft 365 / Outlook mailbox via the cloud — requires a connected M365 account. By default searches sender, subject, AND body (Microsoft Graph's own $search default). Pass scope="metadata" to search only sender/subject (faster, no body scan), or scope="body" to search only the message body. Pass folder to search one folder (a well-known name, or an id, name or path from m365_list_email_folders). For accounts added to the Mac's Mail.app, use search_emails.
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": "m365_search_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 20, max 50) | |
| query | Yes | Search query, e.g. 'budget Q2', 'from:alice@contoso.com', 'subject:invoice' | |
| scope | No | "all" (default — sender+subject+body, today's behavior), "metadata" (sender+subject only), or "body" (body only). | |
| folder | No | Search only this folder: a well-known name, or an id, name or path from m365_list_email_folders. Leave it out to search the whole mailbox. | |
| account | No | Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| query | No | ||
| emails | No | ||
| account | No | The email (UPN) of the Microsoft 365 account this call used. | |
| search_scope | No | ||
| search_backend | No | ||
| search_coverage | No |