Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Create Campaign Reward

growsurf_create_campaign_reward

Creates a new campaign reward configuration for a GrowSurf program, selecting a reward type compatible with referral or affiliate campaign rules.

Instructions

Create a new campaign reward (reward config) on your GrowSurf program. type must be compatible with the program type (affiliate programs support only AFFILIATE rewards; referral programs support the other types). Targets campaignId if you pass it, 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": {
      "type": "<type>",
      "campaignId": "<campaignId>"
    },
    "name": "growsurf_create_campaign_reward"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
eventNoThe referral event that earns this Campaign Reward. Use `LEAD` for a referred signup or `CONVERSION` for a qualifying action. A `LEAD` reward requires a later custom conversion trigger. Referral reward types only.
limitNo
orderNo
titleNo
valueNoTax valuation for the reward (the referrer's side of a double-sided reward). `fairMarketValueUSD` is the manual fair-market value in USD (major units). `taxCharacter` is the reason the recipient earns the reward. For configurable non-commission rewards, `null` inherits the program's confirmed treatment. Commission rewards always use `NONEMPLOYEE_SERVICES`.
imageUrlNo
metadataNoCustom key/value metadata. Sending it replaces the stored object. Each value must be a string, number, or boolean of up to 500 characters. Each key must have 1 to 40 characters once camelCased, and two keys that camelCase to the same key are rejected. Up to 50 keys. An entry that breaks these rules returns `400`. For DOUBLE_SIDED referral rewards, `rewardAmount` is the referrer's amount and `referredRewardAmount` the friend's; without `referredRewardAmount` the friend uses `rewardAmount` unless `referralDescription` is a percent or free offer. Positive amounts use whole units for zero-decimal currencies and at most two decimals otherwise.
isVisibleNo
campaignIdYesTarget program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server.
couponCodeNo
descriptionNo
isUnlimitedNo
imageIconKeyNoThe starter icon shown for the reward, or `null` when `imageUrl` is your own image. Participant pages draw this icon in your program's accent color. Also set `imageUrl` to the icon's image so the iOS and Android SDKs can show it. Sending `imageUrl` without `imageIconKey` clears it.
limitDurationNo
referredValueNoTax valuation for the referred friend's side of a double-sided reward. `taxCharacter` is the reason the recipient earns the reward. For configurable non-commission rewards, `null` inherits the program's confirmed treatment. Commission rewards have no referred-friend side, so GrowSurf clears these settings. Use `PURCHASE_REBATE` only when that is the correct tax character.
numberOfWinnersNo
referralCouponCodeNo
commissionStructureNoAffiliate commission structure (AFFILIATE rewards only). Provide a positive `amount` (+ optional `amountISO`) for a FIXED commission, or `percent` for a PERCENT commission. CLICK and LEAD commissions must use FIXED.
conversionsRequiredNo
nextMilestonePrefixNo
nextMilestoneSuffixNo
referralDescriptionNo
referredRewardUpfrontNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changedv0.19.27
    • changedInput schema / properties / commissionStructure / properties / amount / description
      Previous value: -"Amount in minor currency units (the currency's smallest denomination). For USD, $100.00 is `10000`."New value: +"Amount in minor currency units (the currency's smallest denomination). For USD, $100.00 is `10000`. The maximum is `100000000` (1,000,000.00) for USD, EUR, and GBP."
    • addedInput schema / properties / commissionStructure / properties / amount / maximum
      Added value: +999999999999
    • changedInput schema / properties / commissionStructure / properties / approvalRequired / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedInput schema / properties / commissionStructure / properties / duration / enum
      Previous value: -[
      -  "FOREVER",
      -  "REPEATING",
      -  "ONCE"
      -]New value: +[
      +  "FOREVER",
      +  "REPEATING",
      +  "ONCE",
      +  null
      +]
    • changedInput schema / properties / commissionStructure / properties / duration / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / commissionStructure / properties / event / enum
      Previous value: -[
      -  "CLICK",
      -  "LEAD",
      -  "SALE"
      -]New value: +[
      +  "CLICK",
      +  "LEAD",
      +  "SALE",
      +  null
      +]
    • changedInput schema / properties / commissionStructure / properties / event / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / commissionStructure / properties / hasIntro / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedInput schema / properties / commissionStructure / properties / hasMaxAmount / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedInput schema / properties / commissionStructure / properties / holdDuration / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / commissionStructure / properties / minPaidReferrals / minimum
      Removed value: -1
    • changedInput schema / properties / commissionStructure / properties / minPaidReferrals / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / commissionStructure / properties / type / enum
      Previous value: -[
      -  "PERCENT",
      -  "FIXED"
      -]New value: +[
      +  "PERCENT",
      +  "FIXED",
      +  null
      +]
    • changedInput schema / properties / commissionStructure / properties / type / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / couponCode / maxLength
      Added value: +100
    • addedInput schema / properties / description / maxLength
      Added value: +255
    • addedInput schema / properties / metadata / description
      Added value: +"Custom key/value metadata. Sending it replaces the stored object. Each value must be a string, number, or boolean of up to 500 characters. Each key must have 1 to 40 characters once camelCased, and two keys that camelCase to the same key are rejected. Up to 50 keys. An entry that breaks these rules returns `400`. For DOUBLE_SIDED referral rewards, `rewardAmount` is the referrer's amount and `referredRewardAmount` the friend's; without `referredRewardAmount` the friend uses `rewardAmount` unless `referralDescription` is a percent or free offer. Positive amounts use whole units for zero-decimal currencies and at most two decimals otherwise."
    • addedInput schema / properties / nextMilestonePrefix / maxLength
      Added value: +255
    • addedInput schema / properties / nextMilestoneSuffix / maxLength
      Added value: +255
    • addedInput schema / properties / referralCouponCode / maxLength
      Added value: +100
    • addedInput schema / properties / referralDescription / maxLength
      Added value: +255
    • changedInput schema / properties / referredValue / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • addedInput schema / properties / title / maxLength
      Added value: +100
    • changedInput schema / properties / value / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
  2. Changed1 schema field changedv0.19.23
    • addedInput schema / properties / imageIconKey
      Added value: +{
      +  "description": "The starter icon shown for the reward, or `null` when `imageUrl` is your own image. Participant pages draw this icon in your program's accent color. Also set `imageUrl` to the icon's image so the iOS and Android SDKs can show it. Sending `imageUrl` without `imageIconKey` clears it.",
      +  "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"
      +  ]
      +}
  3. Changed2 schema fields changedv0.19.15
    • addedInput schema / properties / campaignId / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "type"
      -]New value: +[
      +  "type",
      +  "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. Changed6 schema fields changedv0.19.8
    • changedInput schema / properties / couponCode / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / imageUrl / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / nextMilestonePrefix / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / nextMilestoneSuffix / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / referralCouponCode / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / referralDescription / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  6. Changed5 schema fields changedv0.14.0
    • addedInput schema / properties / commissionStructure / allOf
      Added value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "event": {
      +          "enum": [
      +            "CLICK",
      +            "LEAD"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "event"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "amount": {
      +          "minimum": 1,
      +          "type": "integer"
      +        },
      +        "type": {
      +          "enum": [
      +            "FIXED"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "amount"
      +      ]
      +    }
      +  }
      +]
    • changedInput schema / properties / commissionStructure / description
      Previous value: -"Affiliate commission structure (AFFILIATE rewards only). Provide `amount` (+ optional `amountISO`) for a FIXED commission, or `percent` for a PERCENT commission."New value: +"Affiliate commission structure (AFFILIATE rewards only). Provide a positive `amount` (+ optional `amountISO`) for a FIXED commission, or `percent` for a PERCENT commission. CLICK and LEAD commissions must use FIXED."
    • addedInput schema / properties / commissionStructure / properties / amount / minimum
      Added value: +1
    • addedInput schema / properties / commissionStructure / properties / event / description
      Added value: +"The affiliate event that earns the commission. `CLICK` and `LEAD` must use `FIXED`."
    • addedInput schema / properties / event
      Added value: +{
      +  "description": "The referral event that earns this Campaign Reward. Use `LEAD` for a referred signup or `CONVERSION` for a qualifying action. A `LEAD` reward requires a later custom conversion trigger. Referral reward types only.",
      +  "enum": [
      +    "LEAD",
      +    "CONVERSION"
      +  ],
      +  "type": "string"
      +}
  7. First observedv0.12.2

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare non-read-only, open-world, non-idempotent, and non-destructive behavior. The description adds useful business context about program-type compatibility and campaign targeting, but it does not explain duplicate-call behavior, required permissions, validation failures, or what exactly gets created beyond the reward config.

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 description is three short sentences, front-loads the purpose, and includes only targeted constraints. There is no filler or redundant wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex 24-parameter creation tool with nested objects and low schema description coverage. The description covers the required compatibility rule and campaign targeting, but it is too sparse to guide invocation of the broader reward configuration, especially for affiliate vs referral reward types and optional fields.

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

Parameters2/5

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

Schema description coverage is only 29% across 24 parameters. The description adds a valuable compatibility rule for `type` and repeats the `campaignId` fallback, but it does not compensate for the many undocumented optional parameters such as event, limit, value, metadata, commission structure, and referral settings.

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 states a specific verb and resource: create a new campaign reward / reward config on a GrowSurf program. It is clear what the tool does, but it does not explicitly distinguish itself from sibling tools like update_campaign_reward or list_campaign_rewards.

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?

Usage is implied by 'Create a new campaign reward' and the type compatibility rule gives important context for choosing a reward type. However, there is no explicit when-to-use guidance relative to update_campaign_reward, delete_campaign_reward, or list_campaign_rewards, and no when-not-to-use conditions.

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