Skip to main content
Glama

Get Campaign Statistics

get_campaign_statistics
Read-onlyIdempotent

Returns the statistics of one email campaign of the signed-in Mailpro account: emails sent, opens, clicks, clicking contacts, bounces, unsubscriptions, complaints, deliverability score, plus opens and clicks per day and the countries of the readers.

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": {
      "campaign_id": "<campaign_id>"
    },
    "name": "get_campaign_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesCampaign id, from list_campaigns.

Output Schema

NameRequiredDescriptionDefault
dateYes
sentYes
opensYes
titleYes
by_dayYes
clicksYes
bouncesYes
countriesYes
complaintsYes
spam_trapsYes
campaign_idYes
unsubscriptionsYes
clicking_contactsYesContacts who clicked at least once.
deliverability_scoreYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: the data is scoped to the signed-in account and the payload includes per-day time series and reader countries, which tells the agent to expect a comparatively large aggregate response. It omits any note on freshness or rate limits, which keeps it short of a 5.

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

Conciseness4/5

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

One front-loaded sentence that names the resource first and then enumerates fields; nothing is redundant. The metric enumeration is long but each item earns its place by telling the agent what the output covers.

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?

With rich annotations, a fully documented single required parameter, and an output schema that defines the return shape, the description needs only to state scope and content, which it does. An agent has everything required to invoke the tool correctly without further context.

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

Parameters3/5

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

There is a single parameter with 100% schema description coverage, including the provenance hint "from list_campaigns", so the schema carries the meaning. The description reinforces that only one campaign is addressed but adds no format or failure-mode detail (e.g., behavior for an unknown or inaccessible campaign id) beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

Uses a specific verb and resource ("Returns the statistics of one email campaign") and enumerates the exact metrics returned, so an agent can tell it is an aggregate reporting tool rather than a campaign config reader like get_campaign. It does not explicitly acknowledge the overlap with per-metric siblings such as get_campaign_opens or get_campaign_bounces, leaving the agent to infer the distinction from the metric list.

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?

Usage is only implied: the enumerated metrics suggest this is the one-shot overview call, but there is no explicit when-to-use or when-not statement, and no pointer to the narrower siblings (get_campaign_bounces, get_campaign_clicks, get_campaign_opens) that return subsets of the same data. The "signed-in Mailpro account" phrasing does at least scope the call to the caller's own account.

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