Skip to main content
Glama

Get campaign statistics

get_campaign_stats
Read-onlyIdempotent

Campaign results: totals (sent, delivered, opened, clicked, replied, interested, maybe_later, not_interested, autoreplied, bounced, unsubscribed, reply_rate), the funnel shown on the campaign list (contacted, delivered, reply rate, interested), and per-step and per-variant metrics for A/B comparison. opened/clicked are null when tracking is off. Use when the user asks how a campaign performs, for reply rates, or which step or variant works best.

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": {
      "id": "<id>"
    },
    "name": "get_campaign_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCampaign id (uuid).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds one genuine behavioral caveat beyond them: opened/clicked are null when tracking is off, which prevents misreading absent data as zero. It says nothing about permissions, date-range scoping, or freshness of the computed metrics.

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?

Metric groups are front-loaded and the usage sentence closes it out; the long parenthetical metric list is dense but each name is informative rather than filler. No redundant restatement of the title beyond the opening 'Campaign results' label.

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

Completeness4/5

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

With no output schema, the description must enumerate return values and it does so thoroughly: totals, funnel breakdown, per-step and per-variant metrics. The only shortfall is that per-step/per-variant field names and the shape of the A/B comparison are left unspecified.

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?

There is a single required parameter with 100% schema description coverage ('Campaign id (uuid)'), so the schema carries the semantics fully. The description adds nothing about the id and needs not, since no parameter meaning is left ambiguous.

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 names a concrete verb+resource (campaign results/statistics) and enumerates the returned metric groups: totals, funnel, per-step and per-variant metrics. It is clearly an analytics read, distinguishable in intent from configuration siblings, though it never explicitly contrasts itself with get_campaign or campaign_summary.

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

Usage Guidelines4/5

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

It gives explicit usage triggers: 'when the user asks how a campaign performs, for reply rates, or which step or variant works best.' That covers the main selection cases but offers no exclusions or named alternatives for overlapping reporting tools.

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.