Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Create Campaign Group

growsurf_create_campaign_group

Creates an empty campaign group in GrowSurf so you can attach rewards to its groupId before adding participants or rules.

Instructions

Create an empty group on your GrowSurf program. Add Campaign Rewards with this group's groupId before adding participants or rules. Omit rules or send an empty array; nonempty rules return 400. Use growsurf_update_campaign_group to add rules after configuring rewards. Group names must be unique, ignoring case; Default is reserved. 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": {
      "name": "<name>",
      "campaignId": "<campaignId>"
    },
    "name": "growsurf_create_campaign_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe group name (internal only, never shown to participants).
rulesNoOmit this field or send an empty array. Add rules with `growsurf_update_campaign_group` after configuring at least one reward.
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
idNoThe group ID (`grp_…`).
nameNoThe group name (internal only, never shown to participants).
orderNoThe group's position in the program's group list.
rulesNoThe rules that place participants in this group.
createdAtNoWhen the group was created, in Unix milliseconds.
updatedAtNoWhen the group was last changed, in Unix milliseconds.
signupCodeNoThe code for this group's signup link. The link alone does not reveal private rewards. A participant who signs up with the link and verifies their identity joins the group.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.36
    • changedInput schema / properties / rules / description
      Previous value: -"Omit or send an empty array. Add rules after configuring a reward."New value: +"Omit this field or send an empty array. Add rules with `growsurf_update_campaign_group` after configuring at least one reward."
  2. Changed3 schema fields changedv0.19.34
    • changedInput schema / properties / rules / description
      Previous value: -"The rules that place participants in this group. Up to 500."New value: +"Omit or send an empty array. Add rules after configuring a reward."
    • changedInput schema / properties / rules / maxItems
      Previous value: -500New value: +0
    • changedOutput schema / properties / signupCode / description
      Previous value: -"The code for this group's signup link. A participant who signs up through the link joins this group."New value: +"The code for this group's signup link. The link alone does not reveal private rewards. A participant who signs up with the link and verifies their identity joins the group."
  3. 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."
  4. Addedv0.19.32

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false, idempotent=false): it discloses a hard 400 failure mode, name-uniqueness with case-insensitivity, the reserved 'Default' name, and the required ordering against rewards. Those are non-obvious constraints an agent cannot derive from structured fields.

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?

Five short sentences, each carrying a distinct operational constraint, with the core scope ('empty group') front-loaded. No filler and no restatement of the title.

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?

An output schema exists, so return values need no explanation. For a 3-parameter create tool with a multi-step dependency on rewards and rules, the description covers the full workflow, failure modes, and naming constraints.

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 100%, so the schema already documents all three parameters, including the rules constraints and the campaignId default. The description's value-add is limited to the name uniqueness/reserved-word rule; the rules and campaignId guidance largely restates the schema text, so the baseline 3 applies.

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 plus resource with an important qualifier: 'Create an empty group on your GrowSurf program.' The word 'empty' immediately distinguishes this from growsurf_update_campaign_group, which the description then names outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-not-to-use guidance: create empty, add rewards first, then use growsurf_update_campaign_group for rules. It also states the failure condition that selects the alternative ('nonempty rules return `400`'), which is exactly the routing information an agent needs.

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