Skip to main content
Glama

docker/volumes

Read-onlyIdempotent

List Docker volumes with driver, mountpoint, and the containers mounting them. Read-only; filter by glob pattern.

Instructions

Lists Docker volumes with driver, mountpoint (a host path) and the names of the containers, running or stopped, that mount each. Read-only: volumes are never created or removed here. pattern is a glob on the volume name. Text is a block per volume; output_format: json (also yaml/table/wide) returns an array of objects (name, driver, mountpoint, created, scope, labels, options, in_use_by), [] when empty. docker/prune with target volumes removes anonymous unused volumes only. For one volume's details use the docker-volume://<name>/inspect resource, for containers docker/containers. Always runs as root: no privileged argument, refused unless the grant has allowed: true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
patternNoOnly volumes whose name matches this glob
output_formatNoUse json for structured output (yaml, table and wide return the same JSON); default is text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (which already declare read-only/idempotent/non-destructive), it discloses that the tool always runs as root, has no privileged argument, and is refused unless the grant has allowed: true. It also distinguishes its behavior from docker/prune (anonymous unused volumes only) and documents the empty-result and output-format behavior.

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?

Purpose is front-loaded and every sentence earns its place: read-only scope, glob semantics, output formats, the prune distinction, sibling routing, and the root/grant requirement are all non-redundant and useful.

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?

With no output schema, the description still documents return values and the empty case, plus auth requirements and alternatives. Nothing an agent needs to call this tool 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. The description adds value by explaining the json output shape (an array of objects with name, driver, mountpoint, created, scope, labels, options, in_use_by) and the [] empty case, though the pattern glob is already documented in the schema.

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 (Lists) and resource (Docker volumes) plus exactly what is returned: driver, mountpoint, and mounting container names. An agent can immediately distinguish it from docker/containers, docker/images, and docker/networks.

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 to alternatives: the docker-volume://<name>/inspect resource for single-volume details, docker/containers for containers, and docker/prune target volumes for removal. It also clarifies the read-only boundary ('volumes are never created or removed here').

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