Skip to main content
Glama

Get Sending Usage

get_sending_usage
Read-onlyIdempotent

Returns 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

NameRequiredDescriptionDefault
date_toNoLast day of the period, included, yyyy-MM-dd. Leave empty for today.
date_fromNoFirst day of the period, yyyy-MM-dd. Leave empty for the first day of the current month.

Output Schema

NameRequiredDescriptionDefault
date_toYesLast day of the period, included, yyyy-MM-dd.
sms_sentYesSMS sent over the period.
date_fromYesFirst day of the period, yyyy-MM-dd.
total_emailsYes
single_emailsYesEmails sent one by one (transactional) over the period.
campaign_emailsYesEmails sent by campaigns over the period.
sms_credits_usedYesSMS credits used over the period; one SMS can cost more than one credit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds genuinely new behavioral facts: dates are interpreted in Mailpro server time (Central European Time) and the queryable period cannot exceed one year, a constraint absent from the schema. It does not need to describe the return shape because an output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with what is returned, then defaults, then the timezone and range constraint. Every clause carries either content or a constraint; nothing is redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter read tool with an output schema and full annotation coverage, the description supplies everything an agent needs: what is measured, what happens with no dates, how dates are interpreted in time, and the maximum range. No operational gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema's 'yyyy-MM-dd' wording by specifying that the days are interpreted in Central European Time and that a period longer than one year is not permitted. Those are interpretation rules the schema cannot express, materially improving the chance of a correct call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Returns how much the signed-in Mailpro account sent over a period") and enumerates the exact metrics: campaign emails, one-by-one emails, SMS sent, SMS credits used. This is far more precise than the title alone. It stops short of naming a sibling such as get_credit_balance or get_api_usage, so an agent must infer the boundary between 'usage' and 'balance' tools rather than being told.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states the default period when dates are omitted and the one-year maximum, which gives practical context for calling it. However, it never says when to prefer this tool over get_credit_balance or get_api_usage, nor does it name any exclusion, so the routing decision is only implied by the word 'usage'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources