Skip to main content
Glama

Inspect container

docker_inspect_container

Inspect a Docker container by ID to retrieve its configuration and runtime state, optionally targeting a named context in a multi-context pool.

Instructions

Invoke the inspect_container operation.

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": {
      "container_id": "<container_id>"
    },
    "name": "docker_inspect_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
container_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.5/5.0
Behavior1/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the agent needs explicit context about side effects and external dependencies, yet the description supplies none. "Invoke" conveys no behavior at all - not what is returned, not whether the container must be running, not whether anything is changed by the call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence, so there is no padding, but the brevity comes from under-specification rather than economy. Nothing is front-loaded because there is nothing substantive to front-load.

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

Completeness2/5

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

With no output schema, no annotation coverage of effect semantics, and an undocumented required parameter, the definition leaves an agent unable to predict the return payload or the identifier format. For a tool in a crowded family of nearly identically named inspect variants, that gap is disqualifying.

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

Parameters1/5

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

Schema coverage is 50%: the context parameter is documented but container_id has no description, and the tool description adds no meaning to either. An agent cannot tell the expected identifier form (name, short ID, full ID) or how the named-context pool interacts with container identity.

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

Purpose2/5

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

"Invoke the inspect_container operation" restates the tool name rather than explaining what is inspected or what the caller gets back. It uses a vague verb ("invoke") with no specific resource semantics, so an agent gains nothing beyond the title already supplied in annotations.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no prerequisites, and no differentiation from siblings such as docker_inspect_node, docker_inspect_service, or the k8s/podman equivalents. The agent must infer selection entirely from tool names.

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

Deploy Server

Other Tools