Skip to main content
Glama
GrowSurf MCP Server

GrowSurf MCP Server

Official

Get Program Custom Domain

growsurf_get_campaign_custom_domain
Read-onlyIdempotent

Retrieves a GrowSurf campaign's custom landing-page domain and verification details, including the CNAME record to add at your DNS provider. Use it to check domain setup before verification.

Instructions

Fetch the custom domain that serves your GrowSurf program's landing pages, such as https://refer.example.com. Returns domain (null when none is set), isVerified, verifiedAt, and dnsRecord, the CNAME record to add at the DNS provider. This read does not check DNS; use growsurf_verify_campaign_custom_domain for a live check. 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_custom_domain"
  }
}

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
domainNoThe custom domain, such as `https://refer.example.com`, or `null` when none is set.
createdAtNoWhen the domain was set, in epoch milliseconds. `null` when no domain is set.
dnsRecordNoThe DNS record to add at the DNS provider. `null` when no domain is set.
updatedAtNoWhen the domain record last changed, in epoch milliseconds. `null` when no domain is set.
isVerifiedNoWhether the domain's `CNAME` record pointed to `dnsRecord.value` at the last check. Landing pages load on the domain only when this is `true`.
verifiedAtNoWhen the DNS check passed, in epoch milliseconds. `null` while unverified.

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.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description goes beyond them with genuinely useful behavior: the DNS check is not performed, `domain` is `null` when unset, and `dnsRecord` is the CNAME the caller must add at their provider. This is exactly the non-obvious context a caller needs.

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?

Three tightly packed sentences: purpose and example first, then return shape, then the DNS caveat with its alternative, then the targeting rule. Every clause carries information and nothing is repeated.

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 single-parameter, read-only getter with an output schema and full annotation coverage, this description supplies the purpose, target resolution, return fields, and the DNS-verification caveat. An agent can select and invoke it correctly without consulting anything else.

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 description coverage is 100%, so `campaignId` is already fully documented, and the description merely restates the fallback: 'Targets `campaignId` if supplied, otherwise `GROWSURF_CAMPAIGN_ID`.' No additional format, syntax, or edge-case detail is added beyond the schema, 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?

The description opens with a specific verb and resource: 'Fetch the custom domain that serves your GrowSurf program's landing pages,' and immediately concretizes it with an example URL. It also enumerates the returned fields (`domain`, `isVerified`, `verifiedAt`, `dnsRecord`), leaving no ambiguity about what the tool produces versus a mutation like `growsurf_set_campaign_custom_domain`.

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 states an explicit boundary and names the alternative: 'This read does not check DNS; use `growsurf_verify_campaign_custom_domain` for a live check.' That is a clear when-to-use-which rule. It does not address when to prefer `set_`/`remove_` siblings, but for a read-only getter the guidance is strong.

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