search_mail
Find Outlook emails by query using local SQLite FTS5 offline or Microsoft Graph KQL remote search; use offline mode for synced mail to avoid Exchange rate limits.
Instructions
Search emails in local SQLite FTS5 (offline: true) or remotely via Microsoft Graph KQL $search. Remote search is 1 Graph request per page and is rate-limited by Exchange; prefer offline: true (local FTS, no request) for mail that is already synced.
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_mail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| cursor | No | Opaque next_cursor from a previous remote search response | |
| folder | No | ||
| compact | No | Default true. Set false for full message fields in online results (no attachment bytes) | |
| offline | No | Read the local cache only; no Graph request. |