Search Emails
mail_searchSearch emails by subject, sender, or keyword across selected or all accounts and mailboxes; results include account, mailbox, body preview, and pagination.
Instructions
Search emails by subject and/or sender. Each result includes the account, mailbox, and a body preview (~200 chars). Omit mailbox to search across all mailboxes and accounts. Use the preview field to understand results — never guess content from the subject line alone. Returns pagination metadata. Use when: finding emails by subject, sender, or keyword
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 |
|---|---|---|---|
| limit | No | Max results to return | |
| query | Yes | Search term | |
| scope | No | Where to search | all |
| offset | No | Number of results to skip for pagination | |
| account | No | Account name. Omit to search all accounts. | |
| mailbox | No | Mailbox name. Omit to search all mailboxes across all accounts. | |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable text | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| items | Yes | ||
| total | Yes | ||
| offset | Yes | ||
| has_more | Yes | ||
| next_offset | No | ||
| truncation_message | No |