Skip to main content
Glama

get_docker_image_details

Read a Docker image's configuration, environment variable names, labels, and layers to verify image metadata without exposing environment values or raw command arguments.

Instructions

Returns an image's config, environment names, labels, and layers. Environment values and raw command arguments are omitted. Read-only via the Docker API; fatal if the daemon is unreachable or the image is unknown. Use to inspect a single image; get_docker_image_history for layer metadata.

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": {
      "image_id": "<image_id>"
    },
    "name": "get_docker_image_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
image_idYesimage name or ID

Output Schema

NameRequiredDescriptionDefault
imageYes
errorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.0
    • addedOutput schema / properties / image / properties / cmd / description
      Added value: +"omitted to prevent command argument disclosure"
    • addedOutput schema / properties / image / properties / entrypoint / description
      Added value: +"omitted to prevent command argument disclosure"
    • addedOutput schema / properties / image / properties / env / description
      Added value: +"environment names with all values redacted"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden and does so: it declares the operation read-only over the Docker API and discloses two non-obvious data quirks — environment values and raw command arguments are omitted. It also names fatal conditions (daemon unreachable, unknown image), which is precisely the kind of failure-mode context an agent needs before calling.

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?

Four short sentences, each carrying distinct information: output contents, omitted values, read-only status and failure modes, then usage routing. The most decision-relevant facts (what it returns, what it withholds) are front-loaded with no filler.

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?

An output schema exists, so return-shape explanation is unnecessary, yet the description still flags the notable omissions in the payload. For a one-parameter read tool, the combination of payload limits, failure behavior, and sibling routing leaves nothing an agent needs missing.

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

Parameters3/5

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

Schema coverage is 100% and the single parameter is documented as "image name or ID", so the schema already does the work. The description adds nothing about accepted formats or resolution behavior, which is the baseline expectation when coverage is high.

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 and resource ("Returns an image's config, environment names, labels, and layers") and names the sibling it is not (get_docker_image_history). An agent can distinguish it from the container-oriented docker siblings without opening any 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 a clear use case ("Use to inspect a single image") and routes the adjacent need to the correct alternative (get_docker_image_history for layer metadata). It does not explicitly exclude related cases, such as inspecting a running container, but the context is unambiguous.

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