Skip to main content
Glama

Update a DNS record

lw_record_update
Idempotent

Update an existing DNS record by ID, changing name, data, priority, or TTL, with a preview of before/after and conflicts before confirmed execution. Record type cannot change.

Instructions

Update a DNS record by id (v1 Network/DNS/Record/update). Can change name, rdata, prio and ttl; the type cannot change (delete and recreate instead). Preview fetches the current record and shows before and after plus conflicts. 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": {
      "id": "<id>"
    },
    "name": "lw_record_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRecord id from lw_record_list.
ttlNoNew TTL in seconds.
nameNoNew name (relative, "@" or fully qualified).
prioNoNew priority (MX, SRV).
zoneNoZone name, only needed if the record name cannot be matched to a zone.
rdataNoNew record data.
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.6/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the write-permission gate, the two-step preview-then-confirm flow, and the fact that preview fetches the current record and reports before/after plus conflicts. The annotations already declare idempotentHint=true and destructiveHint=false, so the remaining gap is minor – it doesn't say what happens to unlisted fields on update.

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 dense sentences, front-loaded with the verb and scope, and every clause carries operational meaning. The '(v1 Network/DNS/Record/update)' parenthetical and the trailing '(preview first)' are slight redundancy, but nothing is wasted.

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 mutation tool with 8 params and an output schema, the description covers permissions, confirmation workflow, preview behavior, and immutability constraints – everything an agent needs to call it correctly and safely. Return-value detail is correctly left to the output schema.

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 the baseline is 3, but the description contributes meaningful semantics the schema cannot: the mutable field set and, critically, that the record type is immutable. It adds no detail on zone/context/confirm_token beyond the schema, so it stops short of a 5.

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 ('Update a DNS record by id') plus the exact API operation, and immediately bounds the scope with what can change (name, rdata, prio, ttl) versus what cannot (type). An agent can tell this apart from lw_record_create and lw_record_delete from the description alone.

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

Usage Guidelines5/5

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

Gives the when (change an existing record's name/rdata/prio/ttl), the when-not plus alternative for type changes ('delete and recreate instead'), and the prerequisites (LW_ALLOW_WRITES, then confirmation with preview first). Routing and preconditions are explicit rather than inferred.

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