Skip to main content
Glama

Bind your own domain (request it, get the DNS records to add)

bind_domain
Idempotent

Bind LivePage to the user’s own domain (such as go.acme.com, acme.com or a.b.acme.com) so readers who open it see a chosen page. This is a premium feature: only workspaces whose owner has a premium account can bind new domains, 1 per workspace (a root domain that redirects to www counts as one together with www); on a free account a new request returns quota_reached (domains already bound keep working). Every workspace already has its default address .24hw.cn — use set_page_path to put pages there. Only the workspace owner can request one. One call returns every record to add at the DNS provider in records (type / name = host / value / why), the DNS provider dns_provider, notes and say (relay it to the user as it is). If you have tools for the user’s DNS provider, add the records yourself; otherwise give records to the user as they are and ask them to tell you when done. We never take the user’s DNS provider keys. After the records are in, call verify_domain to check progress (each call also moves it forward one step) and call again after retry_after_s until state=active; then use set_domain_route to choose which name opens which page. Idempotent: calling again with the same domain returns the same record and its current progress. A domain with an ICP filing (with any provider) is served from mainland China; one without a filing can still be bound and is served from overseas nodes (slower inside mainland China) — once it is filed, switch it with set_domain_region. Root domains, flattening first: if the DNS provider can flatten (Cloudflare and DNSPod Enterprise / Exclusive are recognised automatically; for Alibaba Cloud DNS Flagship / Exclusive or DNSPod Enterprise, pass apex_mode="flatten" once the user confirms their edition) it opens in place — served straight from the acceleration network, no redirect, fast in mainland China, and the first note recommends it; only otherwise does it redirect to www (a 301 through our US redirect host, about 1 extra second in mainland China), and www is requested together with it.

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

Input Schema

NameRequiredDescriptionDefault
hostnameYesThe domain to bind, without https:// or a path, such as go.acme.com
apex_modeNoRoot domains only: flatten = the user confirmed their DNS plan supports flattening (the root domain opens in place); redirect = send it to www. Omit to choose from the DNS provider

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare idempotency and non-destructiveness, and the description still adds substantial context: quota limits, owner-only authorization, that provider keys are never taken, the records/notes/say return payload, ICP-filing routing consequences, and the flatten-vs-301-redirect trade-off with its latency cost. This is well beyond what the structured fields convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and prerequisites are front-loaded, but the body is a dense wall of bold clauses, parentheses, and nested asides that makes the required call sequence hard to extract on a first read. Nearly every sentence carries information, so the problem is packing density rather than filler.

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 an open-ended multi-step domain-binding workflow with no output schema, the description supplies everything needed: what a call returns, how to relay it to the user, the verify/retry loop, and the regional and redirect consequences of the choice. Little to nothing an agent needs to call this correctly is missing.

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 schema baseline already covers both parameters, yet the description explains apex_mode operationally: which providers are recognized automatically, when to pass apex_mode="flatten" after the user confirms their edition, and what happens when it is omitted. It slightly duplicates the schema's 'Omit to choose from the DNS provider' wording, keeping it from 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?

The description opens with a specific verb and resource ('Bind LivePage to the user's own domain') and gives concrete examples of hostname shapes. It also distinguishes the operation from adjacent tools by naming set_page_path for default addresses and set_domain_route for choosing which name opens which page.

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?

It states explicit preconditions (premium owner account, one domain per workspace, owner only), the failure mode on a free account (quota_reached, existing bindings keep working), and the exact follow-up sequence: add records, call verify_domain, repeat after retry_after_s until state=active, then set_domain_route. It also says what to do when the agent lacks DNS-provider tools.

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