Skip to main content
Glama

Pitchlane

Get campaign analytics

get_campaign_analytics
Read-only

Read views, plays, finishes, CTA clicks, bookings, and watch retention for one campaign. Retention points count visits that reached each elapsed second threshold; page switches come from the campaign outline. Use an inclusive UTC date range of up to 90 days, or 7 days for hourly buckets. Omit both dates for the last 30 days including today, or the last 7 when hourly. Counts include repeat activity.

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

Input Schema

NameRequiredDescriptionDefault
end_dateNoLast UTC date, inclusive (YYYY-MM-DD). Supply with start_date.
intervalNoTimeline interval in UTC. Default: day. Weeks start on Monday.
start_dateNoFirst UTC date, inclusive (YYYY-MM-DD). Supply with end_date.
campaign_idYesThe campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered, and the description adds genuinely non-obvious behavior: counts include repeat activity, retention points count visits reaching each elapsed second threshold, and page switches derive from the campaign outline. The hard limits (90 days, 7 days for hourly) are also behavioral constraints not present in the annotations.

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?

Three sentences, front-loaded with the metric list, then retention semantics, then date rules — no filler or marketing language. The middle sentence is dense enough that 'page switches come from the campaign outline' reads as a compressed aside, but nothing is wasted.

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 carries the burden of telling the agent what comes back, and it enumerates the metrics plus the retention representation. Missing pieces are minor: no hint about result structure or how empty ranges behave, but nothing that would cause a mis-call.

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 the baseline is 3, and the description respects that by not restating field-level docs. It does add real meaning beyond the schema — omission semantics for both dates, the inclusive UTC framing, and interval-dependent range caps — but leaves 'interval' behavior to the enum and doesn't clarify what happens if only one date is supplied.

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 opens with a concrete verb and resource ('Read views, plays, finishes, CTA clicks, bookings, and watch retention for one campaign'), which tells an agent exactly what data comes back. The 'for one campaign' scope distinguishes it implicitly from the account-level sibling, but that sibling is never named, so the differentiation is left to inference.

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 guidance exists but is about parameter regimes rather than tool selection: it says to omit both dates for the last 30 days (or 7 when hourly) and caps ranges at 90 days / 7 days hourly. There is no explicit 'use this instead of get_account_analytics when...' routing or exclusion, so an agent must infer when this tool is the right choice.

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