post--v1-analytics-usage-metrics
Query Mailgun account usage metrics to analyze email validation, processing, and monitoring statistics with customizable date ranges and dimensions.
Instructions
Query account usage 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-usage-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'. | |
| filter | No | ||
| include_subaccounts | No | Include stats from all subaccounts. | |
| include_aggregates | No | Include top-level aggregate metrics. |