Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

List Campaign Rewards

growsurf_list_campaign_rewards
Read-onlyIdempotent

Lists all configured campaign rewards for a GrowSurf program, including switched-off and unselected reward types but excluding deleted ones. Use it to review reward settings and group assignments.

Instructions

List your GrowSurf program's configured Campaign Rewards, including switched-off rewards and rewards whose reward type is not selected. Deleted rewards are excluded. A reward can be earned only when it also appears in the campaign response's embedded rewards array. The list includes every group's rewards; each reward's groupId names its group (null is Default). These settings do not establish that a participant earned or received a reward; earned reward records belong to the individual participant. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "growsurf_list_campaign_rewards"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupIdNoReturn only this group's rewards (`grp_…`). To get Default's rewards, omit `groupId` and keep the rewards whose `groupId` is `null`. An ID that is not a group in this program returns `404`.
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
rewardsNoThe program's configured Campaign Rewards, including switched-off rewards. Deleted rewards are excluded.
rewardEvidenceNoWhat this response establishes about rewards. Combine with other reads; unknown here does not override evidence elsewhere.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.19.37
    • changedOutput schema / properties / rewards / items / properties / description / description
      Previous value: -"The reward description shown to the referrer."New value: +"What the referrer gets, shown to the referrer. A `DOUBLE_SIDED` reward describes the friend's side in `referralDescription`."
    • changedOutput schema / properties / rewards / items / properties / referralDescription / description
      Previous value: -"The reward description shown to the referred friend (double-sided rewards only)."New value: +"What the referred friend gets, shown to the referred friend (`DOUBLE_SIDED` rewards only)."
  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.32
    • addedInput schema / properties / groupId
      Added value: +{
      +  "description": "Return only this group's rewards (`grp_…`). To get Default's rewards, omit `groupId` and keep the rewards whose `groupId` is `null`. An ID that is not a group in this program returns `404`.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / rewards / items / properties / groupId
      Added value: +{
      +  "description": "The group this reward belongs to (`grp_…`), or `null` for Default. A participant earns only their own group's rewards.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed3 schema fields changedv0.19.27
    • changedOutput schema / properties / rewards / items / properties / event / description
      Previous value: -"The referral event that earns this Campaign Reward. `LEAD` means a referred signup; `CONVERSION` means a qualifying action."New value: +"The referral event that earns this Campaign Reward. `LEAD` means a referred signup; `CONVERSION` means a qualifying action. Present for `SINGLE_SIDED`, `DOUBLE_SIDED`, and `MILESTONE` rewards."
    • changedOutput schema / properties / rewards / items / properties / event / enum
      Previous value: -[
      -  "LEAD",
      -  "CONVERSION",
      -  null
      -]New value: +[
      +  "LEAD",
      +  "CONVERSION"
      +]
    • changedOutput schema / properties / rewards / items / properties / event / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  5. Changed1 schema field changedv0.19.23
    • addedOutput schema / properties / rewards / items / properties / imageIconKey
      Added value: +{
      +  "description": "The starter icon shown for the reward, or `null` when `imageUrl` is your own image.",
      +  "enum": [
      +    "GIFT_1",
      +    "GIFT_2",
      +    "GIFT_3",
      +    "GIFT_4",
      +    "GIFT_5",
      +    "GIFT_6",
      +    "GIFT_CARD",
      +    "CASH",
      +    "COIN",
      +    "CARD",
      +    "STAR_1",
      +    "STAR_2",
      +    "STAR_3",
      +    "TROPHY",
      +    "CROWN",
      +    "SEAL",
      +    "HEART_1",
      +    "HEART_2",
      +    "TAG",
      +    "DIAMOND",
      +    "CONFETTI",
      +    "ROCKET",
      +    null
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  6. Changed2 schema fields changedv0.19.15
    • addedInput schema / properties / campaignId / minLength
      Added value: +1
    • addedInput schema / required
      Added value: +[
      +  "campaignId"
      +]
  7. 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."
  8. Changed1 schema field changedv0.19.1
    • changedOutput schema / properties / rewards / description
      Previous value: -"The program's active, visible, and enabled reward configs."New value: +"The program's configured Campaign Rewards, including switched-off rewards. Deleted rewards are excluded."
  9. Changed2 schema fields changedv0.14.0
    • addedOutput schema / properties / rewardEvidence
      Added value: +{
      +  "description": "What this response establishes about rewards. Combine with other reads; unknown here does not override evidence elsewhere.",
      +  "properties": {
      +    "approvalPolicy": {
      +      "description": "Referral reward approval policy from requireManualRewardApproval, not affiliate commission approval or an individual reward state.",
      +      "enum": [
      +        "manual",
      +        "automatic",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "automaticFulfillmentMarking": {
      +      "description": "The autoFulfillRewards setting, when returned by an options read. Null means unknown; this controls marking, not delivery.",
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "basis": {
      +      "enum": [
      +        "this_response_only"
      +      ],
      +      "type": "string"
      +    },
      +    "conclusion": {
      +      "type": "string"
      +    },
      +    "deliveryStatus": {
      +      "enum": [
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "integrationConnection": {
      +      "enum": [
      +        "not_established"
      +      ],
      +      "type": "string"
      +    },
      +    "nextStep": {
      +      "type": "string"
      +    },
      +    "programReferralTrigger": {
      +      "enum": [
      +        "not_established"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / rewards / items / properties / event
      Added value: +{
      +  "description": "The referral event that earns this Campaign Reward. `LEAD` means a referred signup; `CONVERSION` means a qualifying action.",
      +  "enum": [
      +    "LEAD",
      +    "CONVERSION",
      +    null
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  10. First observedv0.12.2

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing that disabled and unselected-type rewards still appear, that deleted ones do not, that grouping is per-group with null meaning Default, and that presence here does not imply a participant earned anything. That last caveat is a genuine semantic trap the annotations would not reveal.

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-loads what is listed and what is excluded, then layers the semantic caveat and the targeting rule. A couple of clauses (campaignId fallback) duplicate the schema, but almost every sentence carries distinct information.

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 two-parameter, read-only list tool with a full input schema and an output schema, nothing material is missing: scope, exclusions, grouping semantics, and the earned-vs-configured distinction are all covered.

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 both parameters are fully documented in structured data, including the groupId 404 behavior and the campaignId fallback. The description adds only a marginal restatement of the campaignId default and of groupId's role in the response.

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?

States a specific verb and resource ('List ... Campaign Rewards') and immediately scopes it to configured definitions rather than earned rewards. It explicitly separates this from the participant-level earned reward records, which is the key ambiguity an agent would otherwise face with siblings like growsurf_list_participants.

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 inclusion/exclusion rules (switched-off rewards included, deleted rewards excluded) and explains the campaignId-vs-env-var targeting rule. It stops short of naming a concrete alternative tool to use for earned reward records, describing the destination conceptually ('belong to the individual participant') instead.

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