Skip to main content
Glama

Replace a whole zone

livedns_zone_replace
Destructive

Replace all DNS records in a LiveDNS zone with a supplied record set, keeping apex NS records by default and confirming changes before applying them.

Instructions

Replace all the records of a zone with the records given (1000 at most; import a zone file beyond). The NS records at @ are kept unless remove_apex_ns is set. The user is shown the counted effect and chooses, outside the conversation, whether a snapshot is taken first. The user confirms outside the conversation; if the result is confirmation_pending, call again with the same arguments and the returned confirmation_id once the user answered.

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>",
      "records": "<records>"
    },
    "name": "livedns_zone_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomain whose zone is served by LiveDNS, e.g. example.com (Unicode accepted).
accountNoAccount name; the default account when omitted.
recordsYesAll the records of the zone after the change.
remove_apex_nsNoAlso remove the NS records at @ when the records given have none. Only when the user asks for it.
confirmation_idNoIdentifier returned by a pending confirmation, once the user has answered on the page opened in their browser. Never invent one.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that apex NS records survive unless remove_apex_ns is set, that the user is shown a counted effect and decides about a snapshot out-of-band, and that a confirmation_pending result requires a re-call with the returned confirmation_id. The only gap is that it does not restate irreversibility or the destructive scope of removing existing records, which the destructiveHint annotation covers only implicitly.

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

Conciseness5/5

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

Four sentences, each carrying distinct operational information: scope limit and alternative, NS preservation, user-facing confirmation and snapshot choice, and the retry protocol. The most consequential constraint (whole-zone replacement) is front-loaded.

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 destructive whole-zone mutation with an out-of-band confirmation flow, the description covers the record cap, apex NS handling, snapshot decision, and the exact confirmation retry semantics. Return values are covered by the output schema, so nothing an agent needs before calling 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 baseline is 3, but the description adds the 1000-record cap that the schema does not enforce, explains the surprise-safety default of preserving apex NS, and documents the confirmation_id re-invocation protocol. Rich record-level value formatting is left to the schema, which already covers it.

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 ('Replace all the records of a zone with the records given') and bounds the scope with a 1000-record cap, pointing to a zone-file import beyond that. This clearly separates it from the name-level or single-record replace siblings without needing to name them.

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?

Gives clear selection context: use this when replacing every record in a zone, switch to zone-file import above 1000 records, and only set remove_apex_ns when the user explicitly asks. It stops short of explicitly contrasting with livedns_name_records_replace or livedns_record_replace for partial replacements, leaving that inference to the agent.

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