Skip to main content
Glama

Update DNS zone features

lw_zone_update
Idempotent

Enable or disable region support for a DNS zone, with a preview and confirmation step before applying the change.

Instructions

Turn region support on or off for a zone (v1 Network/DNS/Zone/update, DNSRegionSupport). This is the only zone setting the API can change. Preview shows before and after. 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": {
      "region_support": "<region_support>"
    },
    "name": "lw_zone_update"
  }
}

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.
region_supportYesNew DNSRegionSupport value.

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.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: a mandatory two-phase preview/confirm flow with a token, a before-and-after preview payload, and an explicit permission gate (LW_ALLOW_WRITES). This is exactly the operational context the readOnly/destructive/idempotent hints cannot convey.

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, zero filler. The purpose and scope limit come first, then preview behavior, then the write preconditions — a clean front-loaded ordering for an agent scanning before acting.

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?

An output schema exists, so return shapes need no prose, and the zone/zone_id choice is fully documented in the schema. What remains — permissions, confirm-token sequencing, and the narrow scope — is all covered, leaving nothing an agent needs before calling.

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% and confirm_token's two-call protocol is already documented there, so the schema does most of the work. The description still adds meaning by explaining that region_support is an on/off toggle of a specific zone feature and that the call requires the preview round-trip, clarifying the cryptic 'New DNSRegionSupport value' label.

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?

Names a specific verb and narrowly-scoped resource: toggling region support (DNSRegionSupport) on or off for a zone. The clause 'This is the only zone setting the API can change' sharply separates it from siblings like lw_zone_bulk_ttl or lw_zone_delegation, so an agent can place it 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?

Gives concrete preconditions for use (LW_ALLOW_WRITES must be granted, preview first) and implicitly bounds scope by declaring region support the only changeable setting. It does not name an alternative tool or state when-not-to-use, so it stops short of full routing 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