Skip to main content
Glama

Plan a bulk DNS import

lw_zone_import_plan
Read-onlyIdempotent

Preview a bulk DNS zone change without applying it: compare desired BIND text or records against the current zone and return creates, updates, deletes, and a plan_hash for the apply step.

Instructions

Plan a bulk change to a zone without changing anything. Give the desired records as BIND text (bind_text) or a records array. Compares with the current zone and returns creates, updates and deletes, plus a plan object and plan_hash to pass to lw_zone_import_apply. prune=false (default) only adds and updates; prune=true also deletes records not in the desired set. SOA is always ignored; apex NS is ignored unless manage_apex_ns=true. CAA and other types the v1 API lacks are reported as skipped.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lw_zone_import_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
zoneNoZone name, e.g. "example.com". Give this or zone_id.
pruneNoDelete current records missing from the desired set (default false). Deletes need LW_ALLOW_DESTRUCTIVE at apply time.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
recordsNoDesired records, as an alternative to bind_text.
zone_idNoNumeric zone id from lw_zone_list. Give this or zone.
bind_textNoZone file text. Relative names resolve against $ORIGIN or the zone name.
default_ttlNoTTL for BIND records without one when the text has no $TTL.
manage_apex_nsNoInclude NS records at the apex (default false; those point at Liquid Web nameservers).

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

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: SOA is always ignored, apex NS is ignored unless manage_apex_ns=true, and CAA/unsupported types are reported as skipped. It also discloses the default prune behavior and that deletes are gated by LW_ALLOW_DESTRUCTIVE at apply time, which is exactly the kind of context an agent cannot infer from structured fields.

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?

Every sentence is load-bearing: what it does, accepted inputs, what it returns, the apply handoff, prune semantics, and the ignore/skip rules. The non-mutating guarantee is front-loaded before the parameter details, with no 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?

An output schema exists, yet the description still summarizes the returned creates/updates/deletes plus plan object and plan_hash, which is what an agent needs to chain the next call. Combined with the ignore/skip rules and destructive-gating note, nothing material is missing for a tool of this complexity.

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 schema carries baseline meaning, but the description still clarifies the mutually exclusive input styles (bind_text vs records) and the semantics of prune and manage_apex_ns beyond their short schema notes. The remaining parameters (zone/zone_id, context, default_ttl) are left entirely to the schema.

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 first sentence states a specific verb, resource and a distinguishing constraint: "Plan a bulk change to a zone without changing anything." It also names the adjacent write tool (lw_zone_import_apply) and the plan_hash handoff, so an agent can tell a dry-run planner apart from an applier without opening either 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 gives clear context for use (produce a plan, then pass plan_hash to lw_zone_import_apply) and explains the prune true/false choice plus the LW_ALLOW_DESTRUCTIVE requirement at apply time. It does not explicitly route away from alternatives for small edits (e.g. single-record tools) or say when a plan is unnecessary, so it falls just short of full when/when-not guidance.

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