Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Trigger Referral

growsurf_trigger_referral
Destructive

Triggers referral credit for a referred participant when a sign-up plus qualifying action occurs; optionally delays the award by 0-90 days to cover refund windows.

Instructions

Trigger referral credit for a referred participant (use when your trigger is Sign up + Qualifying Action). Optionally pass delayInDays (whole days, 0-90) to hold the credit for N days before awarding it (e.g. to cover a refund window). Omit it, or pass 0, to award credit immediately. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.

Input Schema

NameRequiredDescriptionDefault
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.
delayInDaysNo
participantIdNo
participantEmailNo

Output Schema

NameRequiredDescriptionDefault
messageNoHuman-readable result message. Present when credit was not awarded immediately.
successNoWhether referral credit was awarded, scheduled, or cancelled.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.36
    • changedInput schema / properties / delayInDays / minimum
      Previous value: -1New value: +0
  2. 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."
  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. First observedv0.12.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag the mutation profile (readOnlyHint=false, destructiveHint=true, idempotentHint=false, openWorldHint=true); the description adds real value on top by disclosing the deferred-award behavior and the campaign-ID fallback to GROWSURF_CAMPAIGN_ID. It does not address the non-idempotent risk (repeated calls possibly awarding credit twice) or that an awarded credit is not clawed back, which is the main behavioral unknown for an agent. No contradiction with 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.

Conciseness5/5

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

Three sentences, all load-bearing: purpose, delay semantics, and targeting fallback, with the primary action and the usage condition front-loaded. No filler or repetition of schema constraints beyond what adds meaning.

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 4-parameter mutation with an output schema (so return shape needn't be described) and annotations covering the safety profile, this is complete enough to invoke correctly: trigger condition, delay window, and campaign resolution are all covered. The only residual gap is non-idempotency guidance, which the annotation already flags.

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 only 25% (only campaignId is documented), so the description carries extra burden: it fully explains delayInDays semantics ('whole days, 0-90', omit or 0 = immediate) and reinforces the campaignId default. It says nothing about participantId vs participantEmail beyond the anyOf structure — no format hints (ID vs email lookup, case handling), leaving a third of the required input under-specified.

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?

Specific verb + resource ('Trigger referral credit for a referred participant') plus the qualifying configuration condition ('use when your trigger is Sign up + Qualifying Action'), which tells an agent exactly what this does and when it is the right mechanism. It also distinguishes itself from the cancel/delay family by explaining that credit can be held rather than awarded immediately.

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?

Gives clear when-to-use guidance tied to the campaign's trigger type and explains the two delay modes (omit/0 = immediate, N = held). It stops short of naming the sibling that reverses a held credit (growsurf_cancel_delayed_referral) or warning against re-invoking when a credit is already awarded, so the exclusion side is implied rather than stated.

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