Skip to main content
Glama

Delete a DNS zone

lw_zone_delete
Destructive

Deletes a DNS zone and all its records, ending domain resolution when delegation is correct. Export the zone first and confirm the token to execute this destructive action.

Instructions

Delete a DNS zone and all its records (v1 Network/DNS/Zone/delete). Preview shows the record count and delegation status. If delegation is CORRECT the domain stops resolving. Export first with lw_zone_export. Destructive: needs LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, then a confirmation step.

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

Input Schema

NameRequiredDescriptionDefault
zoneNoZone name, e.g. "example.com". Give this or zone_id.
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.
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
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds genuinely new operational context: the preview reveals record count and delegation status, a CORRECT delegation means the domain stops resolving, and two environment flags plus a confirmation step are required. The two-phase token flow and its irreversibility are fully disclosed beyond 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.

Conciseness4/5

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

Four tight sentences with the destructive warning and the export-first advice front-loaded before the permission requirements. Slightly telegraphic phrasing ('Preview shows...') but nothing is padding.

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, high-blast-radius tool, the definition covers consequence, prerequisites, auth flags, and the confirmation protocol, and an output schema exists so return values need no explanation. An agent has everything needed to invoke it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so zone, zone_id, context and confirm_token are already documented in the schema, including the preview-then-repeat protocol. The description reinforces the confirmation behavior but adds no syntax or format detail beyond what the schema supplies, making 3 the correct baseline.

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 ('Delete a DNS zone') plus the scope consequence ('and all its records') and even the underlying API path. That scope clause distinguishes it from record-level siblings like lw_record_delete without naming 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 triggering context and a prerequisite alternative action: 'Export first with lw_zone_export', plus the required permission flags and confirmation workflow. It stops short of explicit when-not guidance (e.g. deleting a single record instead of the whole zone), so it lands just below the top.

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