Skip to main content
Glama

Docker Containers

docker_containers

List Docker containers and show health status and restart counts, including all containers by default, to help diagnose container issues on Linux hosts.

Instructions

List Docker containers with health and restart counts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "docker_containers"
  }
}

Input Schema

NameRequiredDescriptionDefault
all_containersNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. 'List' implies a read-only operation and it usefully discloses that health and restart counts are included, but it says nothing about whether stopped containers are returned by default, required permissions, or result size.

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?

One tight, front-loaded sentence with no filler. Nothing is wasted, though brevity comes at the cost of the missing scope detail.

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 needn't be explained. However, for a simple list tool the undocumented all_containers flag and unstated default scope are meaningful omissions that the description should have closed.

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?

Schema description coverage is 0% for the single all_containers parameter, which defaults to true. The description never mentions this flag or whether stopped containers are included, so it fails to compensate for the schema gap and leaves the scope ambiguous.

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 (List) and resource (Docker containers) plus the payload returned (health and restart counts). It does not distinguish itself from siblings like docker_container_inspect or docker_container_health, leaving differentiation to the agent.

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

Usage Guidelines2/5

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

No when-to-use guidance and no named alternative or exclusion. An agent must infer from the name alone whether this is the right tool versus docker_container_inspect 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.