Skip to main content
Glama

dokploy_docker_image

List, inspect, or remove Docker images on a Dokploy server. Use it to view image configs and clear unused images by repository, tag, and ID to free disk space.

Instructions

Docker image inventory. getImages: list images, serverId?. getImageConfig: imageRef ('nginx:latest' or an image ID), serverId?. removeImage: requires ALL THREE of repository, tag and id — read them off getImages — plus force? and serverId?. For overall disk usage and build cache see dokploy_docker getDiskUsage / getBuildCache / pruneBuildCache.

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

Input Schema

NameRequiredDescriptionDefault
idNoremoveImage: image ID from getImages
tagNoremoveImage: image tag, e.g. 'latest'
forceNoremoveImage: remove even when containers reference the image
actionYes
imageRefNogetImageConfig: image reference or ID
serverIdNo
repositoryNoremoveImage: image repository, e.g. 'nginx'

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.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a real behavioral constraint the schema cannot express — removeImage requires all three of repository, tag and id, obtained from a prior getImages call — but says nothing about irreversibility of removal, whether in-use images are protected by default, permission requirements, or the shape of the response.

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?

Tight, front-loaded, action-by-action structure with no filler sentences. The '?' shorthand for optional parameters is compact but slightly cryptic for a machine reader, which keeps it from a 5.

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?

With 7 parameters, no annotations and no output schema, the description covers every action and the key multi-step workflow, and defers correctly to a sibling for adjacent concerns. It stops short of describing what getImages returns or the consequences of a force removal, which are the remaining things an agent might want.

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 71%, and the description adds value beyond it: it gives a concrete imageRef format example ('nginx:latest' or an image ID) and, critically, states the cross-parameter constraint that repository, tag and id must all be supplied together for removeImage. Only serverId and the action enum are left without added meaning.

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 resource ('Docker image inventory') and then enumerates all three actions with their concrete effects: list images, fetch image config, remove an image. It explicitly separates itself from dokploy_docker's disk-usage and build-cache territory, so an agent can route without opening either schema.

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 per-action usage context (getImageConfig takes a ref or ID; removeImage must be preceded by getImages) and names the sibling tool plus the exact actions to use for disk usage and build cache. The only gap is that it states alternatives but not an explicit 'do not use this when…' condition for the image actions themselves.

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