Skip to main content
Glama

Set one TTL on every record in a zone

lw_zone_bulk_ttl
Idempotent

Sets one TTL across every record in a DNS zone, with a preview of affected records before applying. Use it to lower TTLs before a cutover or raise them afterward.

Instructions

Set the same TTL on every record in a zone (bleed Network/DNS/Zone/bulkUpdateTTL). Typical use: lower TTLs to 300 a day before a cutover, raise them after. Preview lists the records whose TTL changes. Bleed-only. 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": {
      "ttl": "<ttl>"
    },
    "name": "lw_zone_bulk_ttl"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlYesNew TTL in seconds, e.g. 300 before a cutover, 3600 after.
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.

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

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

Annotations only declare the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), while the description adds the non-obvious behavior: a feature-flag gate (bleed-only), a write-permission environment requirement, and a mandatory two-step preview-then-execute confirmation. It also says the preview enumerates which records change, which is exactly the kind of side-effect visibility an agent needs before a bulk mutation.

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?

Four short, front-loaded sentences with zero filler: scope first, then typical use, then the preview behavior, then prerequisites. The embedded API path is mildly jargony but earns its place by anchoring the call; nothing else 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 bulk mutation with a two-step confirmation, the description covers gating, permissions, and ordering, and an output schema exists so return values need no explanation. An agent has everything required to invoke it correctly on the first try.

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 coverage is 100% and the schema itself documents ttl examples, zone/zone_id alternatives, and the confirm_token preview flow. The description reinforces the preview-first sequence but adds no new parameter-level meaning, so the 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 with explicit scope: 'Set the same TTL on every record in a zone,' plus the underlying API operation (bleed Network/DNS/Zone/bulkUpdateTTL). The 'every record in a zone' scope cleanly separates it from single-record siblings like lw_record_update without needing to name them.

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 when-to-use scenario (lower TTLs to 300 before a cutover, raise after), states the prerequisite (LW_ALLOW_WRITES), and prescribes the workflow (preview first, then confirm). It does not explicitly point at the single-record alternative for narrow changes, which is the only gap.

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