Skip to main content
Glama

dokploy_docker_volume

Manage Docker volumes and their files: list volumes, check disk usage, inspect config, read or write files, and remove volumes. Volume writes persist across redeploys.

Instructions

Docker volume management and volume file access. Every action accepts an optional serverId. getVolumes: list volumes. getVolumesSize: per-volume disk usage. getVolumeConfig: volumeName — raw Docker inspect for one volume. removeVolume: volumeName — destroys the volume and its data; take a dokploy_volume_backup first. Files (volumeName + path, writeVolumeFile also content): listVolumeFiles, readVolumeFile (truncated at 100k chars), writeVolumeFile, deleteVolumeFile. Unlike writes into a running container (dokploy_docker writeContainerFile), volume writes survive redeploys. For scheduled backups of these volumes see dokploy_volume_backup.

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": {
      "action": "<action>"
    },
    "name": "dokploy_docker_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath inside the volume, for the file actions
actionYes
contentNowriteVolumeFile: full new file contents
serverIdNo
volumeNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.11.2
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Addedv1.9.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it warns that removeVolume destroys the volume and its data, notes that readVolumeFile truncates at 100k chars, and explains the persistence difference versus container writes. It stops short of stating permission/auth requirements or return shapes for the list actions, which leaves a gap for a multi-action tool.

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?

Front-loaded summary followed by action-by-action notation with no filler sentences; each clause adds information. The telegraphic semicolon style is occasionally terse but never wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-action tool with no annotations and no output schema, the description covers intent, parameters, destructive risk, and truncation behavior adequately. Remaining gaps are return-value expectations for the list/size actions and any auth or environment constraints.

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 description coverage is only 40%, but the description compensates by explaining that serverId is optional and accepted by every action, that file actions need volumeName plus path, that writeVolumeFile additionally needs content, and which actions use volumeName alone. That effectively documents all five parameters beyond the bare 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?

Opens with a specific scope (Docker volume management plus volume file access) and then enumerates every one of the eight actions with the key parameter each takes, so an agent can map an intent to an action without opening the schema. It also explicitly distinguishes itself from siblings by naming dokploy_docker writeContainerFile and dokploy_volume_backup.

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 concrete routing guidance: use volume writes instead of container writes because they survive redeploys, and use dokploy_volume_backup for scheduled backups. It also states a prerequisite for the irreversible path — take a backup before removeVolume.

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