Skip to main content
Glama

Connect custom domain

setup_custom_domain
Idempotent

Connect the user's own domain (e.g. www.example.com, example.com, or landing.example.com) to a Convika landing page.

Use when the user wants their page accessible on their own domain instead of {subdomain}.convika.page (独自ドメイン, 自分のドメインでホームページ・ランディングページを公開). Returns the CNAME record for routing and TXT record for ownership verification. After DNS setup, SSL is automatically provisioned.

  • Available on all plans. Free: 1 custom domain, Pro/MAX: unlimited.

  • Standard flow: connect a www site first, then ask the user to add the returned CNAME and TXT records.

  • example.com and www.example.com connect the same pair: www.example.com is the site that serves the page, and example.com redirects to it (301, path and query kept) once its A record points at Convika. guidance.rootRedirect lists the records to add (A @ to Convika's IPv4, CNAME www, TXT) and any to delete. The pair counts as one domain. If example.com already shows another site, Convika connects only www and leaves example.com alone (guidance.rootRedirect says so). If the response has guidance.rootNotServed instead, example.com won't open the page: tell the user to share the www URL. Do not start a DNS-provider discussion during initial setup.

  • If the tool returns domain_provider_error, tell the user this is a Convika-side provider provisioning failure. Do not tell the user to wait for DNS propagation or change DNS records until Convika fixes the provider error.

  • If the tool returns invalid_hostname, the site itself can't be used (for example, reserved names such as anything.example.com). Ask the user for a site on a domain they own and call this tool again with it.

  • A value with a path (www.example.com/lp) returns path_not_supported: call set_site_url with the full URL instead.

  • If guidance.existingSite is present, another site shows there now and connecting would replace that whole site. Tell the user before any DNS change, as the text says.

  • Call get_domain_status to check verification progress after DNS setup

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": {
      "siteId": "<siteId>",
      "hostname": "<hostname>"
    },
    "name": "setup_custom_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe ID of the page to add a custom domain to
hostnameYesThe custom domain hostname (e.g. 'www.example.com' or 'landing.example.com'). A root such as 'example.com' connects 'www.example.com'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to add a custom domain to"New value: +"The ID of the page to add a custom domain to"
  3. Changed1 schema field changed
    • changedInput schema / properties / hostname / description
      Previous value: -"The custom domain hostname (e.g. 'www.example.com' or 'landing.example.com'). Must be a subdomain, not a root/apex domain like 'example.com'."New value: +"The custom domain hostname (e.g. 'www.example.com' or 'landing.example.com'). A root such as 'example.com' connects 'www.example.com'."
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: it explains the returned CNAME/TXT records, automatic SSL provisioning, plan limits, root-domain redirect behavior, and the guidance fields the response may contain. It also warns when an existing site would be replaced, which is important context, though that warning sits somewhat uneasily with destructiveHint=false.

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?

The purpose and availability are front-loaded, and the bulleted structure makes the extensive edge cases scannable. It is longer than necessary for a two-parameter tool, but nearly every sentence carries actionable guidance.

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?

Given the tool's real complexity — DNS record handoff, SSL provisioning, root redirects, provider errors, invalid hostnames, path rejection, and existing-site replacement — the description covers what an agent needs to call it and act on the result. It also points to get_domain_status for the logical next step after DNS setup.

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 already 100%, so the schema documents both siteId and hostname, including the root-to-www behavior. The description adds some useful semantics, notably that path values are rejected and redirected to set_site_url, but most parameter meaning is already in the schema.

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?

States a specific verb and resource: connecting the user's own domain to a Convika landing page, with concrete examples of www/root/subdomain hostnames. It also distinguishes itself from siblings by explicitly routing path-based inputs to set_site_url and verification checks to get_domain_status.

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 guidance, the standard www-first flow, and clear alternatives for path input and verification. It also covers error-specific next actions, including domain_provider_error, invalid_hostname, and path_not_supported, so the agent knows exactly what to do in each case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.