Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Get Activation Analytics

growsurf_get_campaign_activation_analytics
Read-onlyIdempotent

Fetches strict activation analytics for eligible participants in a campaign enrollment cohort, tracking ordered stages across a 7- or 30-day observation window.

Instructions

Fetch strict activation for eligible participants in one enrollment cohort. Referral programs group by enrolledAsAdvocateAt; affiliate programs group by approvedAsAffiliateAt. The ordered stages are ELIGIBLE, PORTAL_VIEWED, SHARE_ACTION, UNIQUE_REFERRAL_VISIT, LEAD, and CREDITED_REFERRAL. Each participant gets the selected 7- or 30-day observation window. Omit both cohort bounds for the latest fully matured cohort. Read coverageStartAt, state, and reason before interpreting a null or zero; unavailable history does not mean an action never happened. Targets campaignId if passed, otherwise GROWSURF_CAMPAIGN_ID.

Input Schema

NameRequiredDescriptionDefault
cohortToNoExclusive eligibility-cohort end, Unix timestamp in ms. Must be greater than `cohortFrom`.
timezoneNoIANA timezone used to advance cohort boundaries. Defaults to `UTC`.
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.
cohortFromNoInclusive eligibility-cohort start, Unix timestamp in ms. Use with `cohortTo`.
cohortIntervalNoBucket size for `cohorts`. Defaults to `day`.
observationWindowDaysNoDays after eligibility in which stages can count. Defaults to `30`.

Output Schema

NameRequiredDescriptionDefault
cohortsNoSelected range split into exact half-open eligibility-cohort buckets.
timezoneNoIANA timezone used to advance cohort boundaries.
aggregateNoStrict activation metrics for one exact enrollment cohort.
programTypeNoProgram eligibility model.
cohortIntervalNoBucket size for `cohorts`.
coverageStartAtNoEarliest expected complete activation capture time (Unix ms), or `null` until coverage begins.
portalViewedLabelNoProgram-specific display label for the stable `PORTAL_VIEWED` stage.
metricContractVersionNoShared activation and engagement metric version.
observationWindowDaysNoDays after eligibility in which stages count.
portalViewedHelperTextNoDisplay definition for a qualifying signed-in portal view.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.33
    • 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."
  2. Changed8 schema fields changedv0.19.27
    • addedOutput schema / properties / aggregate / properties / largestDrop / properties / fromStage / description
      Added value: +"Strict stage before the largest drop."
    • removedOutput schema / properties / aggregate / properties / largestDrop / properties / fromStage / enum
      Removed value: -[
      -  "ELIGIBLE",
      -  "PORTAL_VIEWED",
      -  "SHARE_ACTION",
      -  "UNIQUE_REFERRAL_VISIT",
      -  "LEAD"
      -]
    • addedOutput schema / properties / aggregate / properties / largestDrop / properties / toStage / description
      Added value: +"Strict stage after the largest drop."
    • removedOutput schema / properties / aggregate / properties / largestDrop / properties / toStage / enum
      Removed value: -[
      -  "PORTAL_VIEWED",
      -  "SHARE_ACTION",
      -  "UNIQUE_REFERRAL_VISIT",
      -  "LEAD",
      -  "CREDITED_REFERRAL"
      -]
    • addedOutput schema / properties / cohorts / items / properties / largestDrop / properties / fromStage / description
      Added value: +"Strict stage before the largest drop."
    • removedOutput schema / properties / cohorts / items / properties / largestDrop / properties / fromStage / enum
      Removed value: -[
      -  "ELIGIBLE",
      -  "PORTAL_VIEWED",
      -  "SHARE_ACTION",
      -  "UNIQUE_REFERRAL_VISIT",
      -  "LEAD"
      -]
    • addedOutput schema / properties / cohorts / items / properties / largestDrop / properties / toStage / description
      Added value: +"Strict stage after the largest drop."
    • removedOutput schema / properties / cohorts / items / properties / largestDrop / properties / toStage / enum
      Removed value: -[
      -  "PORTAL_VIEWED",
      -  "SHARE_ACTION",
      -  "UNIQUE_REFERRAL_VISIT",
      -  "LEAD",
      -  "CREDITED_REFERRAL"
      -]
  3. Changed2 schema fields changedv0.19.15
    • addedInput schema / properties / campaignId / minLength
      Added value: +1
    • addedInput schema / required
      Added value: +[
      +  "campaignId"
      +]
  4. Changed1 schema field changedv0.19.9
    • changedInput schema / properties / campaignId / description
      Previous value: -"Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, without restarting the server."New 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."
  5. Addedv0.14.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the read-only annotations, the description discloses important behavioral context: ordered activation stages, per-participant 7- or 30-day windows, cohort grouping semantics, and the warning to inspect coverageStartAt, state, and reason before treating null or zero as proof an action never occurred.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with the core purpose and then gives dense but relevant operational details. Each sentence contributes to correct invocation or interpretation, with no filler.

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?

For a complex analytics tool with six parameters and an output schema, the description provides the key usage context, cohort semantics, stage order, and interpretation caveats needed to call and read the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds meaning beyond the schema by explaining cohort grouping behavior, when to omit both cohort bounds, how observation windows apply per participant, and the campaignId fallback behavior.

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 states a specific verb and resource: fetch strict activation analytics for eligible participants in one enrollment cohort. It also clarifies the stage model and cohort grouping, which distinguishes this from a generic campaign analytics call.

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?

The description gives useful conditions for cohort-bound omission and explains referral vs affiliate grouping, but it does not explicitly say when to use this tool instead of sibling analytics tools such as growsurf_get_campaign_analytics or growsurf_get_participant_analytics.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools