Skip to main content
Glama

GrowSurf

Get Program Analytics

growsurf_get_campaign_analytics
Read-onlyIdempotent

Fetch analytics for your GrowSurf program: participants, referrals, impressions, per-channel shares, and affiliate revenue, commission, and payout metrics when applicable. Pass interval (day, week, or month) for a per-period series. Pass comma-separated include values for previousPeriod, statusCounts, rates, email, or engagement. engagement groups unique active, sharing, repeat, and retained participants by when portal views and share actions occurred. Its coverageStartAt, state, and reason distinguish measured zeroes from partial or unavailable history. Scope the timeframe with days (default 365, max 1825) or an explicit startDate/endDate window. Explicit dates must both be positive Unix timestamps in milliseconds, with endDate >= startDate and a maximum span of 1825 days. timezone and platform apply to engagement only. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.

Input Schema

NameRequiredDescriptionDefault
daysNo
endDateNoEnd of the timeframe, positive Unix timestamp in milliseconds. Supply `startDate` too; `endDate` must be >= `startDate` and at most 1825 days later.
includeNoComma-separated optional data: `previousPeriod`, `statusCounts`, `rates`, `email`, and `engagement`. Combine values when the question needs more than one view.
intervalNoday/week/month adds a per-period `series`; total (default) returns totals only.
platformNoClient-platform filter for engagement. Defaults to `ALL`.
timezoneNoIANA timezone for engagement interval and distinct-day calculations. Used with `include=engagement`.
startDateNoStart of the timeframe, positive Unix timestamp in milliseconds. Supply `endDate` too; the window must span at most 1825 days.
campaignIdYesTarget program id for this call: the `id` returned by `growsurf_list_campaigns`, not the program name or a share URL. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server.

Output Schema

NameRequiredDescriptionDefault
emailNoSent, delivered, opened, clicked, bounced, and spam complaint metrics for program emails in the requested window.
ratesNoDerived referral rates, each a ratio from 0 to 1. Present only when `include` contains `rates`.
seriesNoPer-period totals in ascending order. Present only when `interval` is `day`, `week`, or `month`.
endDateNoEnd of the analytics timeframe, as a Unix timestamp in milliseconds.
analyticsNoAnalytics totals: `invites`, `impressions`, `uniqueImpressions`, `participants`, `referrals`, `referralCreditPendings`, `referralCreditExpireds`, per-channel share counts (`emailShares`, `twitterShares`, `copyRefLinkShares`, ...), and for affiliate programs `totalRevenue` and `totalCommissions` (in minor currency units (e.g. cents)) plus `totalCommissionCount` and `uniqueCommissionReferrals`.
startDateNoStart of the analytics timeframe, as a Unix timestamp in milliseconds.
engagementNoOpt-in participant engagement grouped by when activity occurred.
statusCountsNoStatus-count breakdowns: dashboard-aligned reward counts, and for affiliate programs `affiliateStatus`, `commissionStatus`, and `payoutStatus` (counts and amounts in minor currency units (e.g. cents)). Present only when `include` contains `statusCounts`.
previousPeriodNoTotals for the equal-length window immediately before the requested one (`analytics`, `startDate`, `endDate`). Present only when `include` contains `previousPeriod`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedOutput schema / properties / email / properties / byType / items / properties / clickRate / description
      Previous value: -"Clicked divided by delivered, from 0 to 1."New value: +"Clicked divided by delivered emails with click tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / email / properties / byType / items / properties / openRate / description
      Previous value: -"Opened divided by delivered, from 0 to 1."New value: +"Opened divided by delivered emails with open tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / email / properties / clickRate / description
      Previous value: -"Clicked divided by delivered, from 0 to 1."New value: +"Clicked divided by delivered emails with click tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / email / properties / isPartial / description
      Previous value: -"Whether the requested window starts before `coverageStartDate`."New value: +"Whether the requested window starts before `coverageStartDate` or some emails lack open, click, or spam complaint tracking. Totals can be incomplete."
    • changedOutput schema / properties / email / properties / openRate / description
      Previous value: -"Opened divided by delivered, from 0 to 1."New value: +"Opened divided by delivered emails with open tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / previousPeriod / properties / email / properties / byType / items / properties / clickRate / description
      Previous value: -"Clicked divided by delivered, from 0 to 1."New value: +"Clicked divided by delivered emails with click tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / previousPeriod / properties / email / properties / byType / items / properties / openRate / description
      Previous value: -"Opened divided by delivered, from 0 to 1."New value: +"Opened divided by delivered emails with open tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / previousPeriod / properties / email / properties / clickRate / description
      Previous value: -"Clicked divided by delivered, from 0 to 1."New value: +"Clicked divided by delivered emails with click tracking enabled, from 0 to 1; zero when none qualify."
    • changedOutput schema / properties / previousPeriod / properties / email / properties / isPartial / description
      Previous value: -"Whether the requested window starts before `coverageStartDate`."New value: +"Whether the requested window starts before `coverageStartDate` or some emails lack open, click, or spam complaint tracking. Totals can be incomplete."
    • changedOutput schema / properties / previousPeriod / properties / email / properties / openRate / description
      Previous value: -"Opened divided by delivered, from 0 to 1."New value: +"Opened divided by delivered emails with open tracking enabled, from 0 to 1; zero when none qualify."
    • addedOutput schema / properties / statusCounts / properties / payoutStatus / properties / attention
      Added value: +{
      +  "description": "Queued or issued Wise payouts that are paused until a refund is confirmed.",
      +  "properties": {
      +    "count": {
      +      "description": "Payouts in this status.",
      +      "type": "integer"
      +    },
      +    "totalAmount": {
      +      "description": "Total payout amount in minor currency units (e.g. cents).",
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / campaignId / description
      Previous value: -"Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server."New value: +"Target program id for this call: the `id` returned by `growsurf_list_campaigns`, not the program name or a share URL. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server."
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds real behavioral detail beyond that: default 365-day window capped at 1825 days, strict date validation rules, engagement-only applicability of timezone/platform, and the fact that `coverageStartAt`/`state`/`reason` distinguish true zeroes from partial or unavailable history. It doesn't discuss rate limits or response size, but for a read-only metrics call the disclosure is stronger than required.

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?

Front-loaded with the metric inventory, then organized parameter-by-parameter in a predictable order, with zero filler sentences. It is dense for a single paragraph, and the date-validation sentence repeats what both the startDate and endDate schema fields already document, which is the main redundancy.

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 an output schema present, the description needn't explain return values, and it still covers every parameter's effect, the default timeframe, date constraints, and the engagement coverage semantics. There is nothing an agent needs in order to call this correctly that is missing, aside from the unmentioned `total` interval default that the schema already handles.

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 high (88%), so the baseline is 3; the description earns above that by explaining what `include=engagement` actually groups (unique active, sharing, repeat, retained participants) and the meaning of its coverage fields, which the schema does not convey. It also explains the campaignId vs GROWSURF_CAMPAIGN_ID targeting, though that claim sits awkwardly against campaignId being listed as required in the schema. Its restatement of the date-window rules largely duplicates the schema text.

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 gives a specific verb plus a concrete enumeration of the returned metrics (participants, referrals, impressions, per-channel shares, affiliate revenue/commission/payouts), so an agent knows exactly which analytics this returns. It never names the sibling analytics tools (get_campaign_activation_analytics, get_participant_analytics), so the boundary between them is left to inference rather than stated.

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 clear in-tool guidance: pass `interval` only when a per-period `series` is needed, pass comma-separated `include` values for extra views, and use `engagement` when you want participant cohorts grouped by portal-view/share timing. The exclusion of `timezone`/`platform` to engagement-only is stated explicitly. What's missing is routing guidance versus the sibling analytics tools, so the agent must guess which analytics endpoint answers which question.

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.