Skip to main content
Glama

Restore a snapshot

livedns_snapshot_restore
Destructive

Replace all records in a LiveDNS zone with those from a snapshot after showing the counted effect and obtaining user confirmation.

Instructions

Replace all the records of a zone with those of a snapshot. The user is shown the counted effect and chooses, outside the conversation, whether a snapshot of the current zone is taken first. The user confirms outside the conversation; if the result is confirmation_pending, call again with the same arguments and the returned confirmation_id once the user answered.

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": {
      "domain": "<domain>",
      "snapshot_id": "<snapshot_id>"
    },
    "name": "livedns_snapshot_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomain whose zone is served by LiveDNS, e.g. example.com (Unicode accepted).
accountNoAccount name; the default account when omitted.
snapshot_idYesSnapshot identifier, from livedns_snapshots.
confirmation_idNoIdentifier returned by a pending confirmation, once the user has answered on the page opened in their browser. Never invent one.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Beyond the destructiveHint/readOnlyHint annotations, it discloses the destructive scope (all zone records replaced), that the user is shown the counted effect, that the choice to pre-snapshot the current zone is made outside the conversation, and the confirmation_id handshake. That is meaningful operational context an agent cannot infer from the annotations alone.

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?

Three tight sentences: the effect first, then the out-of-band user choice, then the retry protocol. Nothing is redundant and the critical destructive framing is front-loaded.

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 destructive, confirmation-gated mutation with an output schema, the description covers the blast radius, the user-decision boundary, and the retry mechanics. 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 parameters are already documented; the description still adds workflow meaning by specifying that confirmation_id must be paired with the same arguments on a retry. It leaves domain/account/snapshot_id semantics entirely to the schema, which is acceptable.

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?

The description gives a specific verb and resource ('Replace all the records of a zone') plus the source of the replacement ('those of a snapshot'), which separates it from livedns_snapshot_create, livedns_snapshot_delete, and the record-level tools 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?

It explains the two-phase confirmation flow and exactly what to do on confirmation_pending (re-call with the same arguments plus the returned confirmation_id). It does not explicitly contrast restore against sibling tools such as livedns_snapshot_create or domain_restore, but the context is otherwise clear.

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