Skip to main content
Glama

volume_remove

Destructive

Remove a Docker volume by name, with force to delete even when containers reference it.

Instructions

Remove a single volume by name.

Fails if any container, running or stopped, still references the volume - remove or recreate those containers first, or pass force=True to remove it anyway (the containers keep their reference but lose the underlying data). For bulk cleanup of volumes with no container references at all, use volume_prune instead.

Args: name: Volume name to remove force: Remove even if a container still references the volume

Returns: bool: True after removal

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
forceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.1
  2. Removedv2.1.4
  3. Addedv2.0.0

TDQS

A5/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description explains the failure condition, the consequence of force=True (containers keep references but lose underlying data), and the prerequisite action. This gives the agent an accurate mental model of side effects without relying solely on annotations.

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?

The description is compact, logically ordered from high-level behavior to failure handling to parameter docs, and every sentence contributes. The Args/Returns section is a clear structural aid for an AI agent needing quick extraction.

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 an output schema present and annotations already marking write/destructive behavior, the description adds the only contextual gaps: volume-contaminant failure, force semantics, data-loss risk, and routing to volume_prune. There is no missing information needed to call the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully compensate. It does: name is 'volume name to remove' and force is 'remove even if a container still references the volume,' adding behavioral meaning that a bare boolean schema field would not convey.

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 action ('remove a single volume by name') and resource, and explicitly distinguishes itself from volume_prune by noting the single-volume scope. The name alone is no good, but the opening sentence removes any doubt about what is being removed.

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?

Gives a clear when-to-use/when-not-to-use rule: use for a single volume and use volume_prune for bulk cleanup of unreferenced volumes. It also states the prerequisite explicitly: remove or recreate referencing containers first, or pass force=True, which makes the choice behavior obvious.

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

Deploy Server

Other Tools