sendgrid_get_stats
Retrieve SendGrid email sending statistics for a specified date range, aggregated by day, week, or month. Use it to track email performance and delivery metrics over time.
Instructions
Get SendGrid email sending statistics for a date range.
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": {
"api_key": "<api_key>"
},
"name": "sendgrid_get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | SendGrid API key | |
| end_date | No | End date (YYYY-MM-DD) | |
| start_date | No | Start date (YYYY-MM-DD). Defaults to 7 days ago. | |
| aggregated_by | No | Aggregation period (default: day) |