Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Update Program Design

growsurf_update_campaign_design
DestructiveIdempotent

Update a GrowSurf program's design configuration, including participant avatars, referred-visitor offer pages, website widget, traffic insights, login copy, and participant settings in one call.

Instructions

Update the design configuration for your GrowSurf program, including participant avatars under participantAvatarStyle, referred-visitor content such as the Claim Offer Popup and the side content of its GrowSurf page (referredExperience.offerPageDescription HTML, up to 5 offerPageSteps of { text, iconKey }, and up to 3 offerPageLinks of { text, url } where an empty url links to the Share URL), the website widget under widget (button or card, placement, timing, and visible pages), the participant Traffic report under trafficInsights, participant sign-in copy under login, payout-destination confirmation page copy under payoutDestinationConfirmation, and the participant Settings panel under participantSettings, such as the language picker's languageSectionTitle (up to 100 characters) and languageSectionInstructionsText (up to 255 characters). trafficInsights.isPublicDisplayed controls visibility; its labels cannot be blank. participantAvatarStyle accepts CHARACTERS, INITIALS, ANIMALS, or GRADIENT. visualStyle accepts GLOW, CLEAN, FLAT, ROUND, TINT, or GLASS; it sets corners, shadows, button shape and background on program pages and the GrowSurf Window. Changing it also fills theme.buttons.borderRadius and the theme.globalBoxShadow fields unless the same request sets them. Text fields use the same character limits as the dashboard Program Editor. Text the Program Editor requires, such as Window labels, button text, and status names, cannot be set to null, empty, or only spaces. Only supplied fields change; omitted fields retain their existing content and arrays replace wholesale. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_design first and use its field names and allowed values exactly, at the same nested path. The Terms page, FAQ page, and How it works text sit under landingPages.content: send fields.landingPages.content.terms (HTML), fields.landingPages.content.termsTitle, and fields.landingPages.content.termsLinkText, never a top-level content. An invalid field returns an error that names the field. When only its parent sections are missing, the error suggests the full path, unless many fields share that name. After a design change is saved, call growsurf_capture_referral_flow_screenshots for short-lived preview screenshots of the referrer and referred-friend experiences. They show the saved program, not the customer's site. Image, icon, and link fields must be hosted http(s) URLs, not data: URIs. 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": {
      "fields": "<fields>",
      "campaignId": "<campaignId>"
    },
    "name": "growsurf_update_campaign_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYes
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

No arguments

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. Changed2 schema fields changedv0.19.15
    • addedInput schema / properties / campaignId / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "fields"
      -]New value: +[
      +  "fields",
      +  "campaignId"
      +]
  3. 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."
  4. First observedv0.12.2

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses the actual partial-update semantics: only supplied `fields` change, omitted fields are retained, and arrays are replaced wholesale — the key destructive behavior an agent must know. It also documents validation behavior (errors name the field, or suggest the full parent path), field-level constraints (character limits, non-blank required text), and a side effect where `visualStyle` back-fills theme border radius and box shadow unless overridden.

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

Conciseness3/5

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

Almost every clause carries useful constraint information, but it is delivered as one very long unbroken paragraph dense with backticked paths, which makes it hard to scan for the rule an agent needs. Breaking the field inventory, validation rules, and workflow steps into separate sentences or sections would preserve the content while improving retrieval.

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, wide-surface mutation tool the description covers prerequisites, targeting (`campaignId` or GROWSURF_CAMPAIGN_ID), URL-only image/icon/link constraints, error behavior, and a verification step. An output schema exists, so return values need not be explained, and nothing essential to calling it correctly appears missing.

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

Parameters4/5

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

`fields` is an open object with no schema properties, so the description carries nearly the whole burden and does so with concrete nested paths (`referredExperience.offerPageDescription`, `landingPages.content.terms`, `participantSettings.languageSectionTitle`) and allowed values (`CHARACTERS`/`INITIALS`/`ANIMALS`/`GRADIENT`, `GLOW`/`CLEAN`/`FLAT`/`ROUND`/`TINT`/`GLASS`). It adds real meaning, though the open-ended field space means many fields remain undocumented, and the `campaignId` guidance mostly restates the schema description.

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 opens with a specific verb+resource ("Update the design configuration for your GrowSurf program") and then enumerates the concrete surfaces covered: avatars, referred-visitor offer page, widget, traffic insights, login copy, payout-destination confirmation, participant settings, and theme/visualStyle. That scope makes it clearly distinguishable from sibling update tools such as growsurf_update_campaign_emails, _reward, or _installation.

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?

It gives strong workflow guidance: read growsurf_get_campaign_design first and reuse its field names/paths, batch related changes into one call rather than one field per call, and call growsurf_capture_referral_flow_screenshots afterward for previews. It stops short of stating when not to use this tool versus other update siblings, but the read-first/batch/verify loop is explicit.

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