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, 3 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 .hy.24haowan.com — 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.

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.8/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false): it discloses the quota and premium gating, that binding never takes the user's DNS keys, that ICP filing determines mainland vs overseas serving and can later be switched via set_domain_region, and how root domains either flatten in place or 301-redirect through a US host with an added latency cost. Idempotency is not merely restated — the description says a repeat call returns the same record plus current progress, which is the practical detail an agent needs.

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?

Front-loaded correctly: cost/quota gating, then the return shape, then the follow-up sequence, then the conditional root-domain detail. The bolding and phrasing give an agent clear landmarks. It is, however, a very long block for a two-parameter tool, and the ICP/root-domain material could be tightened or moved to the sibling tools that act on it.

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?

With no output schema, the description carries the return-value burden and does it: it enumerates records (type/name/value/why), dns_provider, notes, say, retry_after_s and state, and instructs the agent to relay say verbatim. Combined with the premium, quota, ICP and apex handling, nothing an agent needs in order to call this correctly and hand off to verify_domain 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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it tells the agent to pass apex_mode="flatten" only after the user confirms their edition, and names which providers are recognised automatically (Cloudflare, DNSPod Enterprise; Alibaba Cloud DNS Flagship requires explicit confirmation). The hostname examples duplicate the schema's own example rather than adding to it, keeping this 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?

Opens with a specific verb and resource ("Bind LivePage to the user's own domain") and immediately scopes what readers see and what the single call returns ("every record to add at the DNS provider in records"). It explicitly names the sibling steps it is not: set_page_path for the default address, verify_domain for progress, set_domain_route for routing. An agent can pick this tool out of a large sibling list without opening the schema.

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 preconditions (owner-only, premium account, 3 domains per workspace, quota_reached on free accounts) and explicit alternatives (use set_page_path for the default <workspace>.hy.24haowan.com address). It also routes the follow-up flow: call verify_domain after records are in, repeat after retry_after_s until state=active, then set_domain_route. Even the branching on whether the agent has the user's DNS-provider tools is spelled out.

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