Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Set Program Custom Domain

growsurf_set_campaign_custom_domain
DestructiveIdempotent

Set or replace the custom domain used for a GrowSurf program's landing pages, then verify DNS to activate it.

Instructions

Set or replace the custom domain for your GrowSurf program's landing pages. Pass a hostname such as refer.example.com in domain; https:// is added if you leave it out. Paths, ports, queries, and http:// return 400. Replacing a domain removes the old one right away, and its pages stop loading there, so confirm with the customer before replacing a domain that is already set. Sending the current domain again changes nothing. A domain used by another program returns 409, and 403 means the account cannot use custom domains yet: a higher plan is needed, or for an affiliate program, a payment method on file. A new domain starts unverified: add the CNAME record from the returned dnsRecord at the DNS provider (dnsRecord.name pointing to dnsRecord.value), then call growsurf_verify_campaign_custom_domain. 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": {
      "domain": "<domain>",
      "campaignId": "<campaignId>"
    },
    "name": "growsurf_set_campaign_custom_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe hostname to serve the program's landing pages from, with or without `https://`, such as `refer.example.com`.
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. Addedv0.19.27

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true, idempotent=true, and openWorld=true, but the description goes well beyond them: it explains exactly what destruction means (old domain's pages stop loading immediately), confirms the idempotency claim, and maps error codes 400/409/403 to concrete causes including plan/payment-method gating.

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?

It is a single dense block, but nearly every sentence carries actionable information and the primary action plus the destructive warning come first. A little structural separation for the format rules and error codes would improve scanability, but there is minimal waste.

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 destructive mutation with an output schema, the description covers the full lifecycle: setting, replacing, idempotent re-sends, failure modes, and the unverified-to-verified DNS handoff including how to read dnsRecord.name and dnsRecord.value. An agent has everything needed to call it correctly and safely.

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?

With 100% schema coverage the baseline is 3, and the description adds real value on domain normalization: `https://` is auto-prepended, and paths, ports, queries, and `http://` are rejected with 400. The campaignId targeting rule mostly restates what the schema already documents, so it earns a 4 rather than a 5.

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?

Opens with a specific verb+resource: 'Set or replace the custom domain for your GrowSurf program's landing pages.' That scope immediately distinguishes it from the sibling get/verify/remove custom-domain tools without needing to inspect their schemas.

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-to-be-careful guidance: confirm with the customer before replacing an existing domain, re-sending the current domain is a no-op, and after setting a new domain you must call growsurf_verify_campaign_custom_domain. It also names the alternative action to take for a fresh domain rather than leaving the follow-up implicit.

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