Skip to main content
Glama

List ZFS Datasets

zfs_dataset_list
Read-onlyIdempotent

List ZFS datasets with used and available space, mountpoints, and optional recursive pool filtering over SSH, including exact byte counts in detailed mode. Use returned names for snapshot operations.

Instructions

Read-only. Lists ZFS datasets with used/available space and mountpoints over SSH; optional pool limits to one pool (recursive). detailed returns exact byte counts plus referenced size. Use the returned names as dataset in zfs_snapshot_list and zfs_snapshot_action; for pool health use zfs_status 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_dataset_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolNoPool name from zfs_status (or a pool/dataset path) to list recursively; omit for every pool.
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 / pool / description
      Added value: +"Pool name from zfs_status (or a pool/dataset path) to list recursively; omit for every pool."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds context annotations cannot express: transport is over SSH, `pool` triggers recursive listing, and the tool reports clearly when ZFS is unavailable, which tells the agent how failures surface.

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, front-loaded with the read-only marker and the core action, then the parameter/verbosity semantics, then the alternative routing. No filler or repetition.

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?

Only two optional parameters, no output schema and no nesting, so the bar is low and the description still covers return content, verbosity mode, recursion behavior, failure reporting, and chaining to sibling tools. Nothing an agent needs 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 the baseline is 3, but the description adds semantics the schema does not: `detailed` yields exact byte counts plus referenced size (not merely 'full JSON'), and omitting `pool` means every pool rather than an empty result.

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 ZFS datasets') plus scope ('used/available space and mountpoints over SSH'), which is enough for an agent to distinguish it from zfs_snapshot_list and zfs_status 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?

Explicitly routes the agent: names zfs_status as the alternative for pool health and tells it to feed the returned names into zfs_snapshot_list and zfs_snapshot_action as `dataset`. The 'omit for every pool' vs `pool` recursion choice is also given as a selection condition.

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