Skip to main content
Glama

Set reverse DNS (PTR) for an IP

lw_reverse_dns_set
Idempotent

Set the PTR (reverse DNS) record for an IPv4 address to a hostname with a matching A record, ensuring forward-confirmed reverse DNS.

Instructions

Set the PTR record for an IPv4 address on the account (v1 Network/DNS/Reverse/update). The hostname should have a matching A record (forward-confirmed reverse DNS) or mail servers may distrust it. Preview shows the current PTR when Liquid Web reports it. Write: needs LW_ALLOW_WRITES, then a confirmation step (preview first).

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>",
      "hostname": "<hostname>"
    },
    "name": "lw_reverse_dns_set"
  }
}

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.
hostnameYesHostname for the PTR, e.g. "mail.example.com".
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.1/5.0
Behavior4/5

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

Annotations already declare write, idempotent, non-destructive, open-world, but the description adds the LW_ALLOW_WRITES permission gate and the two-call preview/confirmation flow that the annotations do not convey. The preview behavior (shows current PTR as reported by Liquid Web) is useful context, though the token mechanics are partially restated from the schema.

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?

Three sentences, front-loaded with the operation and scope, then prerequisites, then the write-permission and confirmation requirement. Slight redundancy with the schema's confirm_token description, but no filler.

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?

Output schema exists so return values need not be explained, and the description still covers the permission gate, the mandatory confirmation step, and the FCrDNS caveat. It omits what happens to the prior PTR and how long propagation takes, which are the remaining gaps for a DNS mutation.

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 all four parameters are already documented, including the confirm_token preview workflow. The description adds only the FCrDNS constraint on hostname meaning beyond the schema, which is meaningful but small — 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 ('Set the PTR record for an IPv4 address'), scopes it to IPv4 only, and anchors it to the underlying API operation (v1 Network/DNS/Reverse/update). An agent can immediately distinguish this from the read (lw_reverse_dns) and delete (lw_reverse_dns_delete) siblings.

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 concrete precondition (hostname should have a matching A record for forward-confirmed reverse DNS) and mandates a preview-then-confirm sequence before execution. It does not name a sibling to use for verifying the A record first, which keeps it short of a 5.

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