List emails
list_emailsList emails the business has sent, newest first, with their delivery state and times. Covers the last 30 days unless days/from-date say otherwise. Filter by status, kind or related entity, and page with cursor.
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": "list_emails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How far back to look, in days. Defaults to 30; pass 0 to read the whole history (slower). | |
| kind | No | Only emails of this kind (e.g. "invoice", "reminder", "quote-accepted", "order-received"). | |
| limit | No | Page size; defaults to 50, capped at 250. | |
| query | No | Case-insensitive substring match on the subject line. | |
| cursor | No | Offset from the previous response's `cursor`; omit for the first page. | |
| status | No | Only emails in this delivery state: sent | delivered | bounced | complained | rejected | delayed | failed. | |
| to-date | No | Only emails sent at or before this epoch-millis timestamp. | |
| contextid | No | Only emails about this entity — e.g. an invoice id, to see that invoice's send history. | |
| from-date | No | Only emails sent at or after this epoch-millis timestamp. Overrides `days`. |