post--v1-analytics-metrics
Retrieve and analyze email performance metrics for your Mailgun account, including delivery rates, engagement statistics, and campaign analytics.
Instructions
Query account metrics
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": "post--v1-analytics-metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | A start date (default: 7 days before current time). Must be in RFC 2822 format: https://datatracker.ietf.org/doc/html/rfc2822.html#page-14 | |
| end | No | An end date (default: current time). Must be in RFC 2822 format: https://datatracker.ietf.org/doc/html/rfc2822.html#page-14 | |
| resolution | No | A resolution in the format of 'day' 'hour' 'month'. Default is day. | |
| duration | No | A duration in the format of '1d' '2h' '2m'. If duration is provided then it is calculated from the end date and overwrites the start date. | |
| dimensions | No | Attributes of the metric data such as 'subaccount'. See [dimensions](https://documentation.mailgun.com/docs/mailgun/user-manual/reporting/dimensions) | |
| metrics | No | Name of the metrics to receive the stats for such as 'processed_count'. See [metrics](https://documentation.mailgun.com/docs/mailgun/user-manual/reporting/metric-definitions) | |
| filter | No | ||
| include_subaccounts | No | Include stats from all subaccounts. | |
| include_aggregates | No | Include top-level aggregate metrics. |