Skip to main content
Glama

Create VM Snapshot

vm_snapshot_create
Destructive

Create an external disk snapshot of an Unraid VM over SSH, adding overlay files to the VM storage chain for point-in-time recovery. Confirm and acknowledge chain risk before use.

Instructions

⚠ Creates an EXTERNAL disk snapshot of a VM via virsh snapshot-create-as --atomic --disk-only over SSH — the same external-snapshot flow Unraid 7 uses (internal snapshots fail on raw disks and OVMF VMs). Adds overlay files to the VM's storage chain. Requires confirm: true AND acknowledge_risk: true. Revert/delete are deliberately not offered (chain-corruption risk); use the Unraid VM UI for those. Requires SSH (UNRAID_SSH_*) and the VM service enabled; check the result with vm_snapshot_list.

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": "<vm>",
      "name": "<name>"
    },
    "name": "vm_snapshot_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYesVM name, passed to `virsh` as the libvirt domain.
nameYesName for the new snapshot; letters, digits, `.`, `_` and `-` only.
confirmNoSet `true` only after the user approves this specific change; otherwise the tool refuses or prompts them.
acknowledge_riskNoSet `true` only after the user accepts that overlay files stay in the VM's disk chain until merged in the Unraid UI; needed on every call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / acknowledge_risk / description
      Added value: +"Set `true` only after the user accepts that overlay files stay in the VM's disk chain until merged in the Unraid UI; needed on every call."
    • addedInput schema / properties / confirm / description
      Added value: +"Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them."
    • addedInput schema / properties / name / description
      Added value: +"Name for the new snapshot; letters, digits, `.`, `_` and `-` only."
    • addedInput schema / properties / vm / description
      Added value: +"VM name, passed to `virsh` as the libvirt domain."
  2. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, and the description goes well beyond them: it explains that overlay files are added to the VM's storage chain and persist until merged, that both `confirm` and `acknowledge_risk` must be true on every call, and that the operation requires SSH credentials plus the VM service. It is the meaningful behavioral context an agent needs before mutating storage.

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?

Dense but front-loaded: the warning marker and mechanism lead, then side effects, then gating flags, then prerequisites and verification pointer. Every clause carries operational information; nothing is filler.

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 storage mutation with no output schema, the description covers mechanism, side effects, required acknowledgements, prerequisites, excluded operations, and how to verify the result. An agent has everything needed to call it correctly and tell the user what it will do.

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 the baseline is 3, but the description adds causal meaning the schema lacks — why `acknowledge_risk` exists (overlay files stay in the disk chain until merged in the Unraid UI) and that both flags are required together — rather than merely restating the field docs.

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 (create an external disk snapshot of a VM) and pins down the exact mechanism (`virsh snapshot-create-as --atomic --disk-only` over SSH), which separates it from the sibling zfs_snapshot_action and from internal-snapshot approaches the description says fail on raw disks and OVMF VMs.

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

Usage Guidelines5/5

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

Explicitly says what this tool does not do — revert/delete are deliberately not offered due to chain-corruption risk and should be done in the Unraid VM UI — and points the agent to vm_snapshot_list to verify the result. Prerequisites (SSH env vars, VM service enabled) are stated as conditions for use.

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