Skip to main content
Glama

List VM Snapshots

vm_snapshot_list
Read-onlyIdempotent

Lists a VM's libvirt snapshots by name over SSH when the GraphQL API does not expose them, and reports clearly if the VM service is disabled.

Instructions

Read-only. Lists a VM's libvirt snapshots by name via virsh over SSH (snapshots are not exposed by the GraphQL API). Reports clearly when the VM service is disabled. Requires SSH (UNRAID_SSH_*). Use vm_snapshot_create to add one; for ZFS dataset snapshots use zfs_snapshot_list instead.

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": "vm_snapshot_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYesVM name, passed to `virsh` as the libvirt domain.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.3
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
    • addedInput schema / properties / vm / description
      Added value: +"VM name, passed to `virsh` as the libvirt domain."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description still adds real value: the SSH prerequisite (UNRAID_SSH_*), the reason the GraphQL path is unavailable, and the degraded behavior when the VM service is disabled. It stops short of describing empty-result or missing-VM behavior, so it is strong but not exhaustive.

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, front-loaded with the safety declaration, then mechanism, then routing guidance. Every clause carries information; nothing is redundant with the title or annotations.

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 two-parameter read-only list tool with full schema coverage and no output schema, the description covers purpose, mechanism, auth prerequisite, degraded state, and sibling routing. Nothing an agent needs to invoke it correctly is missing.

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 parameters (vm as the libvirt domain name, response_format enum) are already documented. The description's "by name" phrasing adds only marginal meaning beyond the schema, 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 ("Lists a VM's libvirt snapshots by name") and immediately discloses the mechanism (virsh over SSH) and the constraint (snapshots are not exposed by the GraphQL API). An agent can distinguish it from vm_snapshot_create and zfs_snapshot_list without opening any schema.

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?

Names both alternatives explicitly with the condition that selects each: vm_snapshot_create to add a snapshot, zfs_snapshot_list for ZFS dataset snapshots. This is exactly the when-to-use / when-not-to-use guidance that prevents sibling misrouting.

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