Skip to main content
Glama

revert_vm_to_snapshot

Revert a halted VM to a previous snapshot, discarding all changes made since that snapshot was taken. Use it to restore a VM to a known state.

Instructions

Revert a VM to a previous snapshot. WARNING: This will discard all changes made since the snapshot was taken. The VM must be halted 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": {
      "vm_id": "<vm_id>",
      "snapshot_id": "<snapshot_id>"
    },
    "name": "revert_vm_to_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
vm_idYesVM UUID or Xen Orchestra object ID
snapshot_idYesSnapshot VDI UUID or Xen Orchestra object ID to revert to. Get this from list_snapshots.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it warns that all changes since the snapshot are discarded and requires the VM to be halted. It does not say whether the snapshot itself is retained afterward or what the resulting VM power state is, leaving some behavioral gaps.

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 short sentences, each front-loaded and earn its place: operation, destructiveness warning, precondition. There is no redundant or filler wording.

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?

For a two-parameter mutation tool with no annotations or output schema, the description covers the critical risk (data loss) and the operational precondition. What remains missing — post-revert VM state and snapshot retention — is secondary but would improve completeness.

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%, so both vm_id and snapshot_id are already documented, including the pointer to list_snapshots. The description adds no parameter-level meaning beyond the schema, making the baseline 3 appropriate.

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 states a specific verb and resource ('Revert a VM to a previous snapshot') that is unambiguously distinct from siblings such as create_snapshot, delete_snapshot, and list_snapshots. An agent can select this tool 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?

It provides a clear precondition ('The VM must be halted first') that governs correct invocation, which is a meaningful usage context. It stops short of naming alternatives (e.g., delete_snapshot vs revert) or stating when not to use it, so it earns a 4 rather than a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.