Get Email Statistics by Category
get_category_statsRetrieve email statistics for specific categories over a chosen date range, with results grouped by day, week, or month. Use it to analyze category performance for the past 13 months.
Instructions
Retrieve email statistics for specific categories (available for previous 13 months only)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"categories": "<categories>",
"start_date": "<start_date>"
},
"name": "get_category_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date in YYYY-MM-DD format (defaults to today) | |
| categories | Yes | Comma-separated list of categories to retrieve stats for | |
| start_date | Yes | Start date in YYYY-MM-DD format | |
| aggregated_by | No | How to group the statistics | day |