Skip to main content
Glama

Docker Container Inspect

docker_container_inspect

Inspect a Docker container's configuration and runtime details with secrets redacted. Use it to diagnose container settings, verify runtime state, and troubleshoot issues safely.

Instructions

Inspect a container's configuration and runtime details (secrets redacted).

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": {
      "identifier": "<identifier>"
    },
    "name": "docker_container_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYes

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
imageYes
stateNo
configNo
mountsNo
createdNo
platformNo
env_redactedNo
network_settingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It adds one genuinely useful trait, secrets are redacted in the output, and "inspect" weakly implies a read-only call, but it says nothing about required permissions, error behavior when the identifier does not resolve, container must be running or not, or cost/side effects of inspecting a live container.

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?

A single front-loaded sentence with no filler; the parenthetical caveat is placed where it matters most for an agent reading output.

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

Completeness3/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 values need not be described, and the redaction note covers the main output caveat. However, for a tool whose only input is an untyped identifier, the definition leaves the identifier format and its relationship to sibling container tools unresolved.

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

Parameters2/5

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

The single parameter is named 'identifier' with 1-128 chars and 0% schema description coverage, and the description does not clarify whether it accepts a container name, short ID, or full ID. With one undocumented parameter the description should compensate, and it does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (inspect a container) plus the scope of what is returned (configuration and runtime details), which distinguishes it from list-oriented siblings like docker_containers and log-oriented ones like docker_container_logs. It stops short of naming an alternative explicitly, so it is clear but not sibling-differentiating.

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

Usage Guidelines3/5

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

Usage is only implied by the scope phrase: an agent can infer this is the tool for configuration/runtime state rather than logs or health checks. There is no explicit when-to-use, when-not-to-use, or routing to docker_container_logs or docker_container_health.

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