Search messages
search_messagesFind Outlook messages by full-text search across subject, body, sender, and recipients. Use keywords or syntax like 'from:alice@contoso.com' to retrieve compact message summaries.
Instructions
Full-text search across the mailbox (subject, body, sender, recipients) using Microsoft Graph $search. Example queries: "invoice", "from:alice@contoso.com", "subject:release". Returns compact summaries.
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 | Maximum results (capped by OUTLOOK_MAX_RESULTS) | |
| query | Yes | Search text, e.g. "quarterly report" or "from:bob@contoso.com" |