Skip to main content
Glama

get_campaign_analytics_trend_tool

Read-only

Get campaign outreach performance over time — email, LinkedIn, or dialer (sent/opened/replied, invites/accepted, dialed/answered/connected/voicemails etc.). Every channel returns exact whole-window totals plus a per-time-bucket series. The email and LinkedIn series carry every count in their totals; the dialer series carries only dialed, answered, connected, connectedPositive and connectedFollowUp, and its other figures are in totals only. Use for both 'how is my campaign performing over time' and 'how are my emails / LinkedIn / calls doing, is it up or down vs before' questions: compare earlier buckets to later ones for the direction of travel. Scope defaults to every campaign the caller is allowed to see — pass campaignId for a single campaign, or targetUserId for one teammate's campaigns. The window defaults to lifetime; pass since to look at a recent period only. Quote headline figures from totals, never by summing the series — the dialer channel's per-bucket counts deduplicate contacts within each bucket, so summing them over-counts anyone worked in more than one bucket. The dialer's call figures count outbound calls that were actually placed, never inbound calls or calls that failed or were never placed, and by default only calls made from a campaign's dialer steps: pass callType "all" to also count calls dialed straight from a prospect list or a custom number, or "non-campaign" for those alone. callsMade counts the calls; dialed and the other call totals count contacts, each once over the window. dialable is not a call figure: it counts the contacts enrolled in the campaigns' target lists, called or not, and is 0 for calls outside campaigns.

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": {
      "channel": "<channel>"
    },
    "name": "get_campaign_analytics_trend_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the trend window as an ISO 8601 date-time instant. Omit to run up to now. Do not send a date-only YYYY-MM-DD.
sinceNoStart of the trend window as an ISO 8601 date-time instant (e.g. 2026-08-01T00:00:00.000Z). Omit for lifetime analytics — the window then starts at the scope's first campaign. Must not be in the future. Do not send a date-only YYYY-MM-DD.
channelYesWhich outreach channel's trend to fetch. Every channel returns all of its metrics per bucket.
callTypeNoDialer only: which calls to count. "campaign" (the default) counts calls made from a campaign's dialer steps; "non-campaign" counts calls dialed straight from a prospect list or a custom number; "all" counts both. With campaignId, only that campaign's calls count; with targetUserId, the calls outside campaigns are the ones that member dialed.
timezoneNoIANA timezone (e.g. America/New_York) whose calendar days the series is bucketed on. Omit for UTC.UTC
campaignIdNoScope to a single campaign. Omit for numbers across campaigns. Cannot be combined with targetUserId.
targetUserIdNoScope to one team member's campaigns — the campaign OWNER's user id, not the person asking. Use only when the user asks about a specific teammate by name and you have resolved their id. Omit to cover every campaign the caller can see. Cannot be combined with campaignId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive profile, and the description adds substantial behavior beyond that: email/LinkedIn series carry all counts while the dialer series carries only five, dialer buckets deduplicate contacts so summing over-counts, and outbound-only counts by default. It does not discuss result size, rate limits, or pagination, which keeps it off a 5.

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 purpose and the primary usage patterns are front-loaded, and no sentence is pure filler. The back half turns into a dense block of counting caveats, so it is well structured but not maximally tight.

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, so the description carries the return-shape burden and does: totals plus per-bucket series, explicit per-channel series coverage, and the instruction to quote totals rather than summing buckets. Nothing needed to call or interpret this correctly is missing.

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; the description earns above that by explaining that callType 'all' adds calls dialed straight from a list or custom number, that since defaults to lifetime, and by contrasting callsMade (calls) with dialed and dialable (contacts, enrolled not necessarily called).

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?

Opens with a specific verb and resource ('Get campaign outreach performance over time') and enumerates the three channels with their metric families, which distinguishes it from the funnel, lead-activity and sequence-step siblings without needing their schemas.

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

Usage Guidelines5/5

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

Gives explicit triggering questions ('how is my campaign performing over time', 'how are my emails / LinkedIn / calls doing, is it up or down vs before') and states the scope-selection rules: campaignId for one campaign, targetUserId for a teammate, omit for everything visible, since for a recent window.

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.