Skip to main content
Glama

dokploy_docker

Manage Docker containers, files, events, health, and disk usage through Dokploy, including start, stop, restart, config lookup, file operations, and build cache pruning.

Instructions

Docker daemon management: containers, files inside them, events, health, and disk usage. Containers: getContainers (list all, serverId?), restartContainer/startContainer/stopContainer/killContainer/removeContainer (containerId, serverId?), getConfig (containerId, serverId?), findContainers (appName+method, serverId?). Method semantics: match → fuzzy name match (optional appType: stack|docker-compose). label → REQUIRES type: standalone|swarm. stack → docker stack lookup. service → swarm service lookup. Container files (containerId+path, serverId?): listContainerFiles, readContainerFile (output truncated at 100k chars), writeContainerFile (+content — writes into the RUNNING container; the change is lost on redeploy unless the path is a mount), deleteContainerFile. Observability: getEvents (minutes? 1-1440, default 15), getServerHealth (sinceHours? 1-168). Disk: getDiskUsage (docker system df — containers, volumes, images and build cache), getBuildCache, pruneBuildCache (same effect as dokploy_settings clean cleanType=dockerBuilder).

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoAbsolute path inside the container, for the file actions
typeNoRequired for method=label: standalone | swarm
actionYes
methodNo
appNameNo
appTypeNoApp type filter for method=match only: stack | docker-compose
contentNowriteContainerFile: full new file contents
minutesNogetEvents: look back N minutes (default 15)
serverIdNo
sinceHoursNogetServerHealth: look back N hours (max 168)
containerIdNo

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. Changed5 schema fields changedv1.9.1
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "getContainers",
      -  "restartContainer",
      -  "startContainer",
      -  "stopContainer",
      -  "killContainer",
      -  "removeContainer",
      -  "getConfig",
      -  "findContainers"
      -]New value: +[
      +  "getContainers",
      +  "restartContainer",
      +  "startContainer",
      +  "stopContainer",
      +  "killContainer",
      +  "removeContainer",
      +  "getConfig",
      +  "findContainers",
      +  "listContainerFiles",
      +  "readContainerFile",
      +  "writeContainerFile",
      +  "deleteContainerFile",
      +  "getEvents",
      +  "getServerHealth",
      +  "getDiskUsage",
      +  "getBuildCache",
      +  "pruneBuildCache"
      +]
    • addedInput schema / properties / content
      Added value: +{
      +  "description": "writeContainerFile: full new file contents",
      +  "type": "string"
      +}
    • addedInput schema / properties / minutes
      Added value: +{
      +  "description": "getEvents: look back N minutes (default 15)",
      +  "maximum": 1440,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "Absolute path inside the container, for the file actions",
      +  "maxLength": 4096,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / sinceHours
      Added value: +{
      +  "description": "getServerHealth: look back N hours (max 168)",
      +  "maximum": 168,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Changed1 schema field changedv1.7.4
    • addedInput schema / additionalProperties
      Added value: +false
  4. First observedv1.7.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description does disclose genuinely non-obvious behavior: writeContainerFile mutates a RUNNING container and is lost on redeploy unless the path is a mount, and readContainerFile truncates output at 100k chars. However it never flags removeContainer/killContainer as destructive or irreversible, says nothing about required permissions or failure modes, and leaves the effect of stopContainer on running workloads unstated — a meaningful gap for a mutation-heavy tool with zero annotation coverage.

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 with domain plus an action inventory grouped by concern (containers, files, observability, disk), and almost no wasted words. The telegraphic parenthetical style ("+content —", "serverId?") is dense enough that a slower read is needed, but every clause carries information.

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 a 17-action, 11-parameter tool with no annotations and no output schema, this covers action inventory, parameter-to-action mapping, and the two biggest gotchas (ephemeral file writes, output truncation). What is missing is return-shape guidance for the read actions — with no output schema, the agent gets no hint of what getContainers or getDiskUsage actually return.

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?

Adds substantial meaning beyond a 55%-covered schema by binding parameters to actions: containerId/serverId for container ops, containerId+path (+content) for file ops, appName+method for findContainers, and the four method values are defined in prose (fuzzy match, label lookup, stack lookup, swarm service lookup). It also restates default and range behavior for minutes/sinceHours in context. Only serverId and appName semantics remain undefined.

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 concrete domain statement ("Docker daemon management: containers, files inside them, events, health, and disk usage") and then enumerates all 17 actions with their resources. An agent can map any desired docker operation to a specific action name without opening the schema, and the pruning overlap with dokploy_settings is explicitly cross-referenced.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real conditional routing: which params select which action (findContainers needs appName+method), that method=label REQUIRES type, and that pruneBuildCache duplicates dokploy_settings clean cleanType=dockerBuilder so the agent can pick the canonical call. It stops short of stating when to prefer dokploy_docker_image/dokploy_docker_volume over the image/build-cache actions here, and never explains when serverId must be supplied.

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