Skip to main content
Glama

Export a DNS zone

lw_zone_export
Read-onlyIdempotent

Export a DNS zone's records as BIND, normalized JSON, or Cloudflare-ready output, and optionally compare results with Liquid Web's own zone data to spot differences.

Instructions

Export a zone's records. format=bind gives a BIND zone file built from the record list; json gives normalized records; cloudflare gives Cloudflare DNS record bodies (POST /zones/{id}/dns_records) plus a Cloudflare-ready BIND file (no SOA or apex NS, ALIAS converted to CNAME, records not proxied). compare_with_liquid_web=true also fetches Liquid Web's own bleed formatAsBind output and reports differences. Read-only.

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_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
zoneNoZone name, e.g. "example.com". Give this or zone_id.
formatNoOutput format (default bind).
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
zone_idNoNumeric zone id from lw_zone_list. Give this or zone.
default_ttlNo$TTL for the BIND output (default 3600).
include_soaNoInclude the SOA record in BIND output (default false).
compare_with_liquid_webNoAlso call bleed Network/DNS/Zone/formatAsBind and diff it against the record list.

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

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotent, non-destructive), and the description goes beyond them by disclosing the Cloudflare transform rules (no SOA or apex NS, ALIAS converted to CNAME, records not proxied) and what compare_with_liquid_web actually does. Saying "Read-only" restates the annotation rather than adding to it, but the format-specific caveats are genuine behavioral value.

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?

Three dense sentences, each carrying distinct information, with the core action front-loaded before the format matrix. No filler, no restatement of the title, and the caveats are attached directly to the format that triggers them rather than listed separately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter export tool with a full output schema and rich annotations, the description covers the essential decision space: format semantics and the comparison mode. Minor gaps remain — it never mentions the context/auth selection or the zone-vs-zone_id choice — but those are fully documented in the schema, so nothing critical 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 a baseline of 3 would be defensible, but the description adds real meaning the enum cannot: it explains what each format value yields rather than just naming the options. The compare_with_liquid_web flag is likewise expanded into concrete behavior (fetches Liquid Web's own output and reports differences) beyond the schema's one-line gloss.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Export a zone's records") and immediately enumerates the three output shapes it can produce, so an agent knows exactly what artifact comes back. It does not, however, distinguish itself from closely named siblings such as lw_zone_view, lw_zone_details or lw_zone_summary, so an agent must infer that those are read views rather than export renderers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description effectively guides format selection — bind for a zone file, json for normalized records, cloudflare for API-ready bodies — which is the main decision an agent faces here. It gives no guidance on when to prefer this tool over the sibling read tools, and no note that at least one of zone/zone_id is effectively required despite zero required parameters.

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