m365_mail_search
Search all mailbox folders with KQL query text to find matching emails; returns message IDs and summaries, newest first, without full bodies.
Instructions
Find emails across mailbox folders using non-empty KQL search text. Returns IDs and summaries, not full bodies, newest first within the returned set. Use m365_mail_list to restrict a search to one folder, or m365_mail_read for message content. top caps total results across internal pages.
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_mail_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum total matches to return, not page size | |
| query | Yes | Non-empty KQL search text, e.g. from:alex@example.com subject:invoice |