Get Emails
mail_get_emailsRetrieve emails with optional filters for unread, flagged, or date ranges, searching across all mailboxes and accounts. Use it to triage inboxes and review recent messages.
Instructions
Get emails with optional filtering. Each result includes the account, mailbox, and a body preview (~200 chars). Omit mailbox to search across all mailboxes and accounts. TRIAGE GUIDELINES: (1) Group results by account when presenting to the user. (2) Use the preview field to understand what each email is about — never guess from the subject line alone. (3) For any email you want to describe in detail, call mail_get_email first to read the full body. Returns newest first with pagination metadata. Use when: triaging inbox, reviewing recent messages
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mail_get_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max emails to return | |
| filter | No | Filter: all, unread, flagged, today, this_week | all |
| offset | No | Number of results to skip for pagination | |
| account | No | Account name (e.g. 'iCloud'). Omit to search all accounts. | |
| mailbox | No | Mailbox name (e.g. 'INBOX'). 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 |