Skip to main content
Glama

Connect a custom domain

add_custom_domain

Connect the owner's own domain (e.g. kedaiali.com or www.kedaiali.com). Turns on the custom_domain add-on (5 credits/month). Two methods (get_capabilities custom_domains lists which this server has): "cname" returns DNS records the owner adds at their DNS provider; "nameservers" moves the domain's DNS to Cloudflare under our account, so the owner only changes the nameservers at their registrar and both kedaiali.com and www.kedaiali.com open the site (whole domains only, not subdomains). Returns the setup steps; check with domain_status.

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": {
      "site": "<site>",
      "hostname": "<hostname>"
    },
    "name": "add_custom_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite slug (e.g. "kopitiam-muar") or id
methodNocname (default when available): the owner adds DNS records. nameservers: the owner points the domain at Cloudflare nameservers and we manage its DNS.
hostnameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this as non-read-only, non-destructive, and open-world, but the description adds material behavior the annotations cannot: it enables a paid add-on at 5 credits/month, and the nameservers method transfers the domain's DNS to Cloudflare under the provider's account. It also discloses that the call returns setup steps rather than completing setup, which is critical for an agent to know before or after invoking.

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 description is front-loaded with purpose and cost, then method behavior, then the return value, with no filler. It is dense with parenthetical asides, which makes it slightly harder to scan, but every sentence carries information an agent needs.

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?

There is no output schema, so the description correctly specifies that the tool returns setup steps and points to domain_status for verification. It covers cost, method behavior, and a key hostname constraint, leaving only minor gaps such as authentication or plan prerequisites. That is close to complete for a three-parameter mutation tool.

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?

Schema coverage is 67%: site is documented in the schema, method has an enum plus a schema description, while hostname has no schema description beyond maxLength. The description compensates by giving hostname examples and the important 'whole domains only, not subdomains' constraint, and it explains the practical trade-off between the two method values better than the schema does. It adds meaning but does not fully restate the site parameter's semantics.

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 states a specific verb and resource ('Connect the owner's own domain') with concrete examples, and it names the related siblings (get_capabilities for available methods, domain_status for verification). An agent can distinguish this from remove_custom_domain and domain_status without opening any schema.

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 explains when each method applies (cname = owner adds DNS records; nameservers = DNS moves to Cloudflare) and directs the agent to get_capabilities to see which methods exist. It also states the 'whole domains only, not subdomains' exclusion. It stops short of explicitly saying when not to call this tool at all, so it is clear context rather than a full routing rule.

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.

Resources