mail_search
Search emails by keyword, subject, or sender, returning newest matches with previews from inbox, sent, drafts, or all folders.
Instructions
Search the signed-in user's mailbox by keyword, subject or sender name. Returns id, subject, sender, date and a preview snippet, newest first. Searchable folders are inbox, sentitems, drafts, or all. Use mail_list_recent when the ask is time-based rather than keyword-based, and mail_get_thread to read a whole conversation. Requires Mail.Read.
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": "mail_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search keywords, subject, or sender name | |
| folder | No | Mail folder: inbox | sentitems | drafts | all | inbox |
| max_results | No | Maximum emails to return (1–50) |