Skip to main content
Glama

Remove reverse DNS (PTR) for an IP

lw_reverse_dns_delete
Destructive

Deletes the PTR record for an IPv4 address, previewing the current PTR and requiring confirmation before execution.

Instructions

Remove the PTR record for an IPv4 address (v1 Network/DNS/Reverse/delete). Mail sent from that IP may be rejected without a PTR. Preview shows the current PTR when available. 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": {
      "ip": "<ip>"
    },
    "name": "lw_reverse_dns_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 address. The Reverse API is IPv4 only.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
hostnameNoOptional hostname of the PTR to remove.
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.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/openWorldHint annotations by naming the exact gating requirements (LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE), stating a confirmation step is mandatory, and explaining that the first call returns a preview with the current PTR. These are operational facts an agent cannot infer from the annotations alone.

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 short sentences, front-loaded with the action and API path, followed by consequence, preview behavior, and gating requirements in order of decision relevance. 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?

For a destructive, non-idempotent mutation with rich annotations and an output schema, the description covers the safety gates, the confirmation handshake, and the preview result. Nothing an agent needs to invoke it safely is missing.

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 the schema already documents ip, context, hostname, and the confirm_token protocol. The description reinforces the two-step token workflow and the preview behavior but adds little parameter-level meaning beyond that; baseline 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?

States a specific verb and resource ('Remove the PTR record for an IPv4 address') and pins it to the underlying API path (v1 Network/DNS/Reverse/delete). The verb 'remove' plus 'PTR' cleanly separates it from the sibling set/read reverse-DNS tools.

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 a clear motivating context ('Mail sent from that IP may be rejected without a PTR') and describes the required two-step call flow with the confirmation token. It does not explicitly name alternatives such as lw_reverse_dns for read-only viewing, so it falls 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