Skip to main content
Glama

Change a domain's nameservers

lw_domain_nameservers_set
Idempotent

Change a domain's registrar-assigned nameservers to exactly two new hosts, with a preview and confirmation step to verify current and live NS before DNS cutover.

Instructions

Change the nameservers assigned to a domain at the registrar (bleed Network/DNS/Domain/Nameserver/assign). The API takes exactly two (ns1, ns2); for more than two use the portal (lw_domain_portal_steps topic=nameservers). This is a DNS cutover: the new provider must already serve a complete zone. Preview shows current assigned and live NS vs the new pair, checks for DNSSEC DS records over DNS-over-HTTPS, and checks for a Liquid Web DNS zone when moving to Liquid Web nameservers. Write: needs LW_ALLOW_WRITES, then a confirmation step (preview first).

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": {
      "domain": "<domain>",
      "nameservers": "<nameservers>"
    },
    "name": "lw_domain_nameservers_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomain to change, e.g. example.com.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
nameserversYesExactly two nameservers, e.g. ["ada.ns.cloudflare.com", "bob.ns.cloudflare.com"].
confirm_tokenNoLeave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=true, and the description adds real value beyond them: the DNS-cutover risk, the LW_ALLOW_WRITES write gate, the confirmation-token flow, and exactly what the preview checks (current vs live NS, DNSSEC DS records over DoH, Liquid Web zone presence). It stops short of describing propagation timing, failure/partial-failure behavior, or rollback, which matter for a live DNS cutover — so it is good but not fully transparent.

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?

Densely front-loaded: purpose, constraint, alternative, risk, preview contents, and write gating all appear in four sentences with little waste. The parenthetical '(bleed Network/DNS/Domain/Nameserver/assign)' and 'lw_domain_portal_steps topic=nameservers' read as internal jargon that adds noise without helping an agent decide or call correctly.

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 mutation tool with an output schema already present, the description carries everything an agent needs to invoke it safely: the two-step confirm flow, the write-permission gate, the readiness precondition, and the preview's diagnostic checks. Return values are covered by the output schema, so no gap remains.

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; the description still adds meaning by explaining the effect of the 'nameservers' parameter (assign at the registrar, hard cap of two, redirect for more) and by framing confirm_token as a preview-then-execute sequence whose preview surfaces concrete checks. It does not clarify domain normalization or context-selection behavior beyond what the schema says.

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 ('Change the nameservers assigned to a domain at the registrar') and immediately bounds the scope to a two-nameserver pair. It also names the sibling route for the out-of-scope case (lw_domain_portal_steps topic=nameservers), so an agent can distinguish it from lw_domain_nameservers without opening a 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?

Explicitly covers when to use (exactly two NS), when not to (>2 NS, use the portal), and the required two-step invocation order ('preview first', then repeat with the confirmation token). The prerequisite state ('the new provider must already serve a complete zone') further gates correct usage.

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