Get Sending Usage
get_sending_usageReturns how much the signed-in Mailpro account sent over a period: emails sent by campaigns, emails sent one by one, SMS sent and SMS credits used. Without dates, the period is the current month. Dates are days in Mailpro server time (Central European Time); the period cannot exceed one year.
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": "get_sending_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | Last day of the period, included, yyyy-MM-dd. Leave empty for today. | |
| date_from | No | First day of the period, yyyy-MM-dd. Leave empty for the first day of the current month. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | Last day of the period, included, yyyy-MM-dd. | |
| sms_sent | Yes | SMS sent over the period. | |
| date_from | Yes | First day of the period, yyyy-MM-dd. | |
| total_emails | Yes | ||
| single_emails | Yes | Emails sent one by one (transactional) over the period. | |
| campaign_emails | Yes | Emails sent by campaigns over the period. | |
| sms_credits_used | Yes | SMS credits used over the period; one SMS can cost more than one credit. |