Skip to main content
Glama

Delete a DNS record

lw_record_delete
Destructive

Delete a single DNS record by ID after previewing it and confirming with a token. Requires write and destructive permissions, and saves a zone history snapshot first.

Instructions

Delete one DNS record by id (v1 Network/DNS/Record/delete). Preview shows the record. Liquid Web keeps a zone history snapshot before changes (see lw_zone_history). Destructive: needs LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, then a confirmation step.

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": {
      "id": "<id>"
    },
    "name": "lw_record_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRecord id from lw_record_list.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
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.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds genuinely new behavior: a preview phase, two environment gates, a confirmation step, and the fact that a zone history snapshot is retained before the change. It does not cover failure modes (e.g. deleting an in-use record) or whether the snapshot is the sole recovery path, which keeps it below a 5.

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 short sentences: operation and scope first, then the preview reference, then the destructive-gating requirement. Nothing is redundant and the highest-risk information is placed where an agent will read it before committing to the call.

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?

With an output schema present, return values need no explanation, and the description covers prerequisites, the two-phase confirmation flow, and the recovery hook. The remaining gap is error/edge behavior for a destructive single-record delete, which an agent would need to know before calling.

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 description coverage is 100%, so id, context, and confirm_token are already fully documented in the schema. The description's "by id" and the preview mention restate rather than extend that, so the baseline of 3 applies.

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 description states a specific verb and resource ("Delete one DNS record by id") plus the underlying API path, which cleanly separates it from siblings such as lw_zone_delete and lw_reverse_dns_delete. An agent can identify the operation and its unit of deletion without opening the 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 concrete operating conditions: writes and destructive actions must be allow-listed via LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, and a confirmation step is required. It also points to lw_zone_history for the pre-change snapshot. It stops short of explicitly contrasting with lw_zone_delete or lw_reverse_dns_delete, so routing between the delete variants is inferred from the resource nouns rather than stated.

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