Skip to main content
Glama

campaigns_stats

Per-step funnel breakdown and KPI cards for a single campaign. Returns funnel (each step's pending/created/approved/sent/failed/unsubscribed/replied counts + bounce_rate) and kpis: sent / read / bounced as {total, prev, delta_pct, spark}, and reply = {contacted, replied, interested, reply_rate, interested_rate, prev_reply_rate, delta_pct, spark}. Reply and interested rates are percentages per lead contacted, not per message. ?days= is one of 0 (all time), 7, 14 (default), 30; for all time prev, delta_pct and spark are null/empty. One call replaces fetching step_logs per step and counting by hand.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/stats/

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": {
      "sqid": "<sqid>"
    },
    "name": "campaigns_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoKPI window: 0 = all time, else the last N days (default 14).
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden and does most of it: it discloses that for all-time windows `prev`, `delta_pct` and `spark` are null/empty, that reply/interested rates are per lead contacted rather than per message, and that the operation is a GET. It does not mention permissions, error behavior for a missing campaign, or response size, leaving a real gap for an unannotated read endpoint.

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?

Purpose and return shape are front-loaded, and the dense notation (`kpis`, `reply` object literals) is compact rather than padded. The method/URL line is useful but the heavy brace notation makes it slightly harder to scan than plain sentences.

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 no output schema, the description takes on the job of explaining return values and does so in detail, including rate definitions and the degraded all-time window. An agent has enough to call it correctly and to interpret the response without further lookups.

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 coverage is 50%: `days` is documented in the schema, and the description usefully adds the null/empty consequence for the 0 value, while the default 14 is stated in both places. `sqid` has no description in either source, and the description only implies its meaning via the endpoint path template, so the undocumented half of the schema is not fully compensated.

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 opening sentence states a specific resource and scope: per-step funnel breakdown plus KPI cards for a single campaign, and then enumerates the exact return keys (`funnel`, `kpis`, `reply`). The closing line names `campaigns_step_logs` as the inferior manual alternative, so an agent can pick this tool over its closest sibling 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 the operative selection rule: one call replaces fetching `step_logs` per step and counting by hand, which effectively routes the agent away from the sibling tool. It also explains the `?days=` window and its default. It stops short of explicit when-not-to-use conditions (e.g., cross-campaign or workspace-level aggregation), which limits it to a 4.

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.