Skip to main content
Glama

get_campaign_stats

Read-only

Outreach numbers per campaign: targets, mails sent (sent mail drafts + target states), delivered, bounced, auto-replies, human replies, not interested, meetings, won, reply rate and bounce rate (in % of delivered/sent). Optional campaign_id (else all campaigns of the tenant) and since (ISO; counts mails sent since then). Targets get their state from sync_campaign_responses — run that first when the numbers look stale. No open-tracking pixel on purpose (B2B cold mail, TDDDG § 25): replies, meetings and wins are what counts. Read-only.

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_campaign_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoOnly entries from this point in time on (ISO 8601)
campaign_idNoID of the campaign

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the 'Read-only' sentence adds nothing. The description does add real behavioral context beyond annotations: how 'sent' is derived (sent mail drafts + target states), the denominators for the percentages, and that target states depend on a separate sync call. It does not cover latency, volume limits, or response shape, so it is a moderate rather than rich addition.

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?

The metric list is front-loaded and the parameter rules, prerequisite and caveat follow in a sensible order with no filler. The TDDDG § 25 aside is slightly editorial but does preempt an agent asking why open rates are missing, so it mostly earns its place.

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?

There is no output schema, and the description compensates by enumerating the returned metrics and their calculation bases. Combined with the scope defaults and the sync prerequisite, an agent has everything needed to call this correctly and interpret the result.

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 genuinely extends both parameters: campaign_id's absence means 'all campaigns of the tenant', and since narrows specifically to mails sent after that instant rather than any entry. That is meaning an agent cannot get from the schema alone.

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

Purpose5/5

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

The description names the exact resource (outreach numbers per campaign) and enumerates every returned metric — targets, mails sent, delivered, bounced, replies, meetings, won, plus reply/bounce rates. This is specific enough that an agent can distinguish it from get_campaign (campaign data) or sync_campaign_responses (state refresh) without opening the schema.

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 concrete scoping rules — omit campaign_id to get all campaigns of the tenant, use since to restrict to mails sent after a point — and states a prerequisite: run sync_campaign_responses first when numbers look stale. It stops short of explicitly excluding sibling stats tools such as get_vorbereitung_stats, so it is clear context rather than full when/when-not guidance.

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.