Skip to main content
Glama

List ZFS Snapshots

zfs_snapshot_list
Read-onlyIdempotent

Lists ZFS snapshots over SSH with dataset@snapshot names, space used, and creation time; optionally limit to one dataset. Split names at @ to get arguments for zfs_snapshot_action.

Instructions

Read-only. Lists ZFS snapshots (full dataset@snapshot name, space used, creation time) over SSH; optional dataset limits to one dataset (recursive). Split a name at @ to get the dataset and snapshot arguments for zfs_snapshot_action. For a VM's libvirt snapshots use vm_snapshot_list instead. Reports clearly when ZFS is not available.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zfs_snapshot_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetNoPool or pool/dataset path from zfs_dataset_list; lists its snapshots and its children's. Omit for all.
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 / dataset / description
      Added value: +"Pool or pool/dataset path from zfs_dataset_list; lists its snapshots and its children's. Omit for all."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered; the description adds genuinely new behavior — that it runs over SSH and that it reports clearly when ZFS is unavailable. It stops short of describing volume, pagination, or how the two response_format modes differ in content, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the read-only status and the resource, then scope, then alternatives. The leading 'Read-only.' is partly redundant with the readOnlyHint annotation, a small amount of otherwise unearned space.

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 tool with no output schema, the definition covers what is returned, transport, recursion, the empty-scope case, failure behavior when ZFS is missing, and both sibling alternatives. Nothing an agent needs in order to call it correctly is missing.

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 baseline is 3, but the description adds meaning the schema does not: `dataset` scoping is recursive over children, and the omitted-parameter case means all snapshots. The `@`-splitting note also ties the returned name back to the action tool's parameters, which the schema never expresses.

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 (lists ZFS snapshots) and enumerates the returned fields (full `dataset@snapshot` name, space used, creation time), plus the SSH transport. It explicitly separates itself from zfs_snapshot_action and vm_snapshot_list, so an agent can pick it 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?

It names the alternative for VM libvirt snapshots (vm_snapshot_list) and the condition that selects it, and it explains the downstream handoff: split a name at `@` to obtain the arguments for zfs_snapshot_action. That is explicit when-to-use and when-not-to-use guidance rather than implied context.

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