Skip to main content
Glama

Compare a zone snapshot to now

lw_zone_history_compare
Read-onlyIdempotent

Compare a DNS zone history snapshot with its current records and get add, change, or delete actions needed to restore the snapshot. Read-only; no rollback is performed.

Instructions

Compare a history snapshot with the zone's current records (bleed Network/DNS/Zone/History/compare). Each returned record has an action (add, change, delete) that says what to do to the current zone to get back to the snapshot. Read-only: it does not roll anything back.

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": {
      "history_id": "<history_id>"
    },
    "name": "lw_zone_history_compare"
  }
}

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.
verboseNoReturn raw records.
zone_idNoNumeric zone id from lw_zone_list. Give this or zone.
history_idYesSnapshot id from lw_zone_history.

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

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint. The description adds genuinely useful behavioral detail beyond them: the returned 'action' field (add/change/delete) is expressed relative to the current zone so the agent knows how to interpret direction, and the no-rollback statement removes ambiguity about side effects.

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?

Two short sentences, front-loaded with the core action, followed by the key interpretive note and the safety clarification. Nothing is wasted and nothing is buried.

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?

An output schema exists, so return structure needn't be re-explained, and the description still covers the semantically important 'action' values. Minor gaps remain around behavior when the snapshot is missing or large diffs/pagination, but the definition is adequate for correct invocation.

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%, with each parameter documented in the schema (including zone vs zone_id alternatives and the lw_zone_history source for history_id). The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Compare a history snapshot with the zone's current records') and clarifies the direction of the comparison. It references lw_zone_history as the source of snapshot ids and rules out rollback semantics, though it does not explicitly contrast itself with siblings like lw_domain_zone_reconcile.

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

Usage Guidelines3/5

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

Usage context is implied: you have a snapshot id and want a diff against live records. The 'does not roll anything back' clause implicitly tells the agent this is not the tool for restoring, but no alternative tool is named for that case and there are no explicit when-not-to-use conditions.

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