Skip to main content
Glama
Ecomail MCP Server

Ecomail MCP Server

Official
by Ecomailcz

Get Campaign Stats Detail

get-campaign-stats-detail

Retrieve per-subscriber campaign statistics with individual event counts per subscriber; filter by date, event type, email, and pagination.

Instructions

Get per-subscriber statistics for a campaign. Returns individual event counts for each subscriber.

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-stats-detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoFilter from date (YYYY-MM-DD, UTC)
pageNoPage number
typeNoFilter by event type
emailNoFilter by email
per_pageNoResults per page (max 100)
campaign_idYesCampaign ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full load; it does confirm this is a read of precomputed statistics and says the return is per-subscriber event counts. It omits whether results are paginated, whether the unfiltered call is expensive, and how large the payload can grow (per_page max 100 suggests paging exists). Nothing contradicts expected read-only behavior, but the disclosure stops well short of full behavioral context.

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?

Two tight sentences, front-loaded with the resource and then the return shape; no filler. It could have used the second sentence to carry usage or paging guidance instead of partially restating the first, but there is no wasted phrasing.

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

Completeness3/5

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

For a six-parameter, paginated read tool with no output schema and no annotations, the agent still lacks the result shape (which event fields per subscriber), paging behavior, and how this relates to the aggregate stats sibling. The description covers the core purpose but not enough of the surrounding contract.

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?

Schema description coverage is 100%, so all six parameters (campaign_id, from, type, email, page, per_page) are already documented in the schema with formats and the enum. The description adds nothing about how filters interact — e.g. whether filtering by type still returns one row per subscriber — so the baseline 3 applies.

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?

States a specific verb and resource ('Get per-subscriber statistics for a campaign') and adds a scope detail ('individual event counts for each subscriber') that implicitly separates it from the aggregate get-campaign-stats. It never names that sibling, so the differentiation is inferable rather than explicit.

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

Usage Guidelines2/5

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

There is no statement of when to use this instead of get-campaign-stats, get-automation-stats-detail, or get-segment-stats, nor any prerequisite or exclusion. The only hint is the word 'detail' plus 'per-subscriber', which an agent must decode on its own.

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