Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Get Program Emails

growsurf_get_campaign_emails
Read-onlyIdempotent

Fetch a GrowSurf campaign's Emails tab configuration, including participant email templates and settings, to review or prepare updates for the specified campaign.

Instructions

Fetch the Emails tab configuration for your GrowSurf program, including participant email templates, settings, and read-only fields. settings.sender.fromEmail is read-only and can be changed in the dashboard after domain verification. When updating, omit unchanged sender fields; fromName and replyToEmail cannot be cleared with null. 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_get_campaign_emails"
  }
}

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.

Output Schema

NameRequiredDescriptionDefault
inviteNoThe invitation email a participant sends to friends. `useCompanyReplyTo` sets who receives replies.
settingsNoSender (`sender`), physical contact address (`contact`), and shared design (`design`) settings. The design object includes `unsubscribeAffiliateInvite` for direct affiliate invitation emails. Its read-only `layoutMode` is `INLINE` for new programs: bodies require `{{emailFooter}}` and may include `{{emailHeader}}`. Older programs omit `layoutMode` and keep their existing layout.
loginLinkNoOne-time sign-in link for returning participants. Transactional; its toggle cannot be changed.
goalAchievedNoSent when a participant unlocks a reward. Referral programs only.
offerClaimedNoSent when a referred visitor saves an offer through the Claim Offer Popup. Referral and affiliate programs. Promotional; its toggle can be changed.
payoutPendingNoSent when a payout is on the way. Affiliate programs only.
referredSignupNoSent to a referrer each time someone signs up using their link. Referral and affiliate programs.
taxInfoMissingNoAsks a participant to submit required tax information. Transactional; its toggle cannot be changed.
inviteAffiliateNoInvites a prospective affiliate to join the program. Its body must keep `{{affiliateInviteLink}}`. Affiliate programs only. Promotional; its toggle can be changed.
taxInfoApprovedNoTells a participant their tax form is complete and approved. Transactional; its toggle cannot be changed.
taxInfoReceivedNoConfirms submitted tax information was received. Transactional; its toggle cannot be changed.
taxInfoRejectedNoTells a participant their tax information needs to be resubmitted. Transactional; its toggle cannot be changed.
welcomeReferredNoWelcome email for someone who signs up through a referral link. Referral programs only.
followUpReminderNoOptional reminder to the referrer about directly invited contacts who have not signed up after `delayDays` (integer 2–30, default 3). Existing reminder dates stay unchanged. Disabled by default. Only new invitations created while this email is enabled qualify automatically. A later offer claim preserves invitation eligibility; popup-only claims never qualify. Each contact is included once. Referral and affiliate programs.
referralLinkUsedNoSent to a referrer when they earn referral credit. Referral programs only.
payoutSentSuccessNoSent when a payout completes. Affiliate programs only.
commissionAdjustedNoSent when a commission is adjusted after a refund or chargeback. Affiliate programs only.
welcomeNonReferredNoWelcome email for a participant who joins without being referred. Referral and affiliate programs.
commissionGeneratedNoSent to an affiliate when they earn a new commission. Affiliate programs only.
campaignEndedWinnersNoSent to reward winners when the program ends. Referral programs only.
progressUpdateMonthlyNoMonth-end progress recap for participants. Referral and affiliate programs.
campaignEndedNonWinnersNoSent to non-winners when the program ends. Referral programs only.
payoutDestinationChangedNoTells a participant their payout destination changed. Its body must keep `{{payoutDestinationMaskedEmail}}`. Referral and affiliate programs. Transactional; its toggle cannot be changed.
affiliateApplicationDeniedNoTells an applicant their affiliate application was not approved. Affiliate programs only. Transactional; its toggle cannot be changed.
referralLinkViewedFirstTimeNoSent the first time a participant's referral link is viewed. Referral and affiliate programs.
affiliateApplicationApprovedNoTells an applicant their affiliate application was approved. Affiliate programs only. Transactional; its toggle cannot be changed.
affiliateApplicationReceivedNoConfirms an affiliate application was received and is under review. Affiliate programs only. Transactional; its toggle cannot be changed.
payoutDestinationConfirmationNoAsks a participant to confirm the payout destination where they will receive payouts, such as a PayPal or Wise email address. Its body may use `{{payoutProvider}}` and must keep `{{payoutDestinationConfirmationLink}}`. Referral and affiliate programs. Transactional; its toggle cannot be changed.
affiliateApplicationStatusLinkNoSends an applicant a secure link to view their application status. Its body must keep `{{applicationStatusLink}}`. Affiliate programs only. Transactional; its toggle cannot be changed.
affiliateEmailChangeVerificationNoAsks an affiliate to confirm a new account email address. Its body must contain `{{identityVerificationLink}}`. Affiliate programs only. Transactional; its toggle cannot be changed.
affiliateApplicationEmailCorrectionNoAsks an applicant to confirm a corrected email address. Its body must contain `{{identityVerificationLink}}`. Affiliate programs only. Transactional; its toggle cannot be changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.34
    • changedOutput schema / properties / settings / properties / contact / properties / companyName / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  2. Changed4 schema fields 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."
    • changedOutput schema / properties / settings / properties / contact / properties / addressLine1 / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / settings / properties / contact / properties / city / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / settings / properties / sender / properties / fromName / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  3. Changed14 schema fields changedv0.19.27
    • addedOutput schema / properties / settings / properties / contact
      Added value: +{
      +  "description": "The physical mailing address shown in your email footers (required by anti-spam laws such as the US CAN-SPAM Act).",
      +  "properties": {
      +    "addressLine1": {
      +      "description": "First address line. Required.",
      +      "maxLength": 255,
      +      "type": "string"
      +    },
      +    "addressLine2": {
      +      "description": "Second address line shown in email footers.",
      +      "maxLength": 255,
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "city": {
      +      "description": "City. Required.",
      +      "maxLength": 255,
      +      "type": "string"
      +    },
      +    "companyName": {
      +      "description": "Company name. Required.",
      +      "maxLength": 255,
      +      "type": "string"
      +    },
      +    "country": {
      +      "description": "Free-text country (not validated as an ISO code).",
      +      "maxLength": 100,
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "postalCode": {
      +      "description": "Postal or ZIP code shown in email footers.",
      +      "maxLength": 100,
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "state": {
      +      "description": "State, province, or region shown in email footers.",
      +      "maxLength": 255,
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / settings / properties / design / properties / footer
      Added value: +{
      +  "description": "Email footer HTML.",
      +  "maxLength": 150000,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / settings / properties / design / properties / header
      Added value: +{
      +  "description": "Email header HTML.",
      +  "maxLength": 150000,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / settings / properties / design / properties / unsubscribeAffiliateInvite
      Added value: +{
      +  "description": "Unsubscribe footer for direct affiliate invitation emails. Must contain the tokens `{{unsubscribeLink}}`, `{{companyName}}`, and `{{address}}`.",
      +  "maxLength": 150000,
      +  "type": "string"
      +}
    • addedOutput schema / properties / settings / properties / design / properties / unsubscribeInvite
      Added value: +{
      +  "description": "Unsubscribe footer for invite emails. Must contain the tokens `{{unsubscribeLink}}`, `{{companyName}}`, and `{{address}}`.",
      +  "maxLength": 150000,
      +  "type": "string"
      +}
    • addedOutput schema / properties / settings / properties / design / properties / unsubscribePromotional
      Added value: +{
      +  "description": "Unsubscribe footer for promotional emails. Must contain the tokens `{{unsubscribeLink}}`, `{{companyName}}`, and `{{address}}`.",
      +  "maxLength": 150000,
      +  "type": "string"
      +}
    • addedOutput schema / properties / settings / properties / design / properties / unsubscribeTransactional
      Added value: +{
      +  "description": "Footer for transactional emails. Must contain the tokens `{{companyName}}` and `{{address}}`.",
      +  "maxLength": 150000,
      +  "type": "string"
      +}
    • changedOutput schema / properties / settings / properties / sender / properties / fromEmail / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedOutput schema / properties / settings / properties / sender / properties / fromName / description
      Previous value: -"Sender name, or `null` before one is configured. When updating, omit to keep the current value or supply a non-empty name that is not an email address. `null` is not accepted on update."New value: +"Sender name. When updating, omit to keep the current value or supply a non-empty name that is not an email address. `null` is not accepted on update."
    • addedOutput schema / properties / settings / properties / sender / properties / fromName / maxLength
      Added value: +100
    • changedOutput schema / properties / settings / properties / sender / properties / fromName / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • changedOutput schema / properties / settings / properties / sender / properties / replyToEmail / description
      Previous value: -"Email address that receives replies, or `null` before one is configured. When updating, omit to keep the current value or supply a valid email address. `null` is not accepted on update."New value: +"Email address that receives replies. When updating, omit to keep the current value or supply a valid email address. `null` is not accepted on update."
    • addedOutput schema / properties / settings / properties / sender / properties / replyToEmail / maxLength
      Added value: +100
    • changedOutput schema / properties / settings / properties / sender / properties / replyToEmail / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  4. Changed7 schema fields changedv0.19.15
    • addedInput schema / properties / campaignId / minLength
      Added value: +1
    • addedInput schema / required
      Added value: +[
      +  "campaignId"
      +]
    • addedOutput schema / properties / followUpReminder
      Added value: +{
      +  "description": "Optional reminder to the referrer about directly invited contacts who have not signed up after `delayDays` (integer 2–30, default 3). Existing reminder dates stay unchanged. Disabled by default. Only new invitations created while this email is enabled qualify automatically. A later offer claim preserves invitation eligibility; popup-only claims never qualify. Each contact is included once. Referral and affiliate programs.",
      +  "type": "object"
      +}
    • changedOutput schema / properties / settings / description
      Previous value: -"Sender (`sender`), physical contact address (`contact`), and shared design (`design`) settings. The design object includes `unsubscribeAffiliateInvite` for direct affiliate invitation emails."New value: +"Sender (`sender`), physical contact address (`contact`), and shared design (`design`) settings. The design object includes `unsubscribeAffiliateInvite` for direct affiliate invitation emails. Its read-only `layoutMode` is `INLINE` for new programs: bodies require `{{emailFooter}}` and may include `{{emailHeader}}`. Older programs omit `layoutMode` and keep their existing layout."
    • addedOutput schema / properties / settings / properties / design
      Added value: +{
      +  "properties": {
      +    "layoutMode": {
      +      "description": "Read-only email layout. `INLINE` requires `{{emailFooter}}` in each body; `{{emailHeader}}` is optional.",
      +      "enum": [
      +        "INLINE"
      +      ],
      +      "readOnly": true,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / settings / properties / sender / properties / fromName / description
      Previous value: -"Sender name, or null before one is configured. A new value must not be an email address."New value: +"Sender name, or `null` before one is configured. When updating, omit to keep the current value or supply a non-empty name that is not an email address. `null` is not accepted on update."
    • changedOutput schema / properties / settings / properties / sender / properties / replyToEmail / description
      Previous value: -"Email address that receives replies, or null before one is configured."New value: +"Email address that receives replies, or `null` before one is configured. When updating, omit to keep the current value or supply a valid email address. `null` is not accepted on update."
  5. 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."
  6. Changed2 schema fields changedv0.19.8
    • changedOutput schema / description
      Previous value: -"A program's email configuration. Each template property is an object with `subject`, `preheader`, `body` (HTML), and `isEnabled` (plus `useCompanyReplyTo` on the invite email). The templates available depend on the program type. `GET` returns the full object; `PATCH` back only the fields you want to change."New value: +"A program's email configuration. Each template property is an object with `subject`, `preheader`, `body` (HTML), and `isEnabled` (plus `useCompanyReplyTo` on the invite email). The templates available depend on the program type. `GET` includes read-only fields; `PATCH` only the writable fields you want to change. The `invite` and transactional email `isEnabled` toggles cannot be changed here."
    • addedOutput schema / properties / settings / properties
      Added value: +{
      +  "sender": {
      +    "properties": {
      +      "fromEmail": {
      +        "description": "Read-only sender email address. Change it in the dashboard after domain verification; omit it from an email configuration update.",
      +        "readOnly": true,
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fromName": {
      +        "description": "Sender name, or null before one is configured. A new value must not be an email address.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "replyToEmail": {
      +        "description": "Email address that receives replies, or null before one is configured.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
  7. Changed1 schema field changedv0.14.0
    • addedOutput schema / properties / offerClaimed
      Added value: +{
      +  "description": "Sent when a referred visitor saves an offer through the Claim Offer Popup. Referral and affiliate programs. Promotional; its toggle can be changed.",
      +  "type": "object"
      +}
  8. First observedv0.12.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so the safety profile is covered; the description adds value by identifying which specific field (`settings.sender.fromEmail`) is read-only and why (domain verification). It also discloses constraints that `fromName`/`replyToEmail` cannot be nulled and that unchanged sender fields should be omitted, though this update-oriented detail sits oddly on a read tool and could momentarily confuse an agent.

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?

Purpose is front-loaded in the first clause, followed by short, concrete caveats; no sentence is filler. The one inefficiency is that the final two update-related clauses describe behavior belonging to a different tool, slightly diluting focus.

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

Completeness4/5

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

With an output schema present and rich annotations, the description only needs to cover scope and gotchas, which it does: what is fetched, the read-only field, and the id-resolution fallback. It stops short of explicitly handing off mutations to the update sibling, which is the only real gap for a tool of this low complexity.

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% and the single `campaignId` parameter already documents that it is the `id` from `growsurf_list_campaigns` and defaults to the environment variable. The description restates the same fallback rule without adding new format or validation detail, so the schema is doing the heavy lifting and baseline 3 applies.

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 opens with a specific verb and resource: "Fetch the Emails tab configuration for your GrowSurf program," and enumerates what is returned (participant email templates, settings, read-only fields). It is clearly distinguishable from generic program fetches, but it never names the natural sibling `growsurf_update_campaign_emails`, so the read/write pairing must be inferred.

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 only implied: the mention of "when updating" signals this is the read counterpart to an update tool, but no explicit "use growsurf_update_campaign_emails to change these values" routing is given. The campaignId vs. GROWSURF_CAMPAIGN_ID targeting rule is a genuine operational guideline, which lifts it above a bare 2.

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