Email stats
email_statsAggregate email stats for one source or the whole account over a date range: counts by event type, unique opens/clicks, bounce/complaint/open/click rates, bounce breakdown by subtype, and an optional daily time series. Rates are percentages of sends.
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": "email_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | No | ISO 8601 date or timestamp; only with date_range custom | |
| from_date | No | ISO 8601 date or timestamp; only with date_range custom | |
| source_id | No | Limit to one source (id from list_sources); omit for the whole account | |
| date_range | No | Date window preset (default last_30_days); use custom with from_date/to_date | |
| include_daily_series | No | Include a per-day sent/delivered/bounced series (ranges up to 120 days); default false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Present when there were no sends in the applied window | |
| scope | Yes | ||
| counts | Yes | ||
| daily_series | No | ||
| rates_percent | Yes | ||
| bounce_breakdown | Yes | Counts keyed by bounce subtype (Permanent, Transient, Undetermined, Unknown) | |
| applied_date_range | Yes |