Skip to main content
Glama

List containers

docker_list_containers
Read-onlyIdempotent

List Docker containers to inspect running or all containers, including stopped ones, in a specified context. Use it to check container inventory and status before managing workloads.

Instructions

Invoke the list_containers operation.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, and the description adds nothing beyond that safety profile. It does not mention that output shape, whether stopped containers are included by default, or any daemon/connection requirements that openWorldHint hints at.

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?

The single sentence is short but wastes its only slot on a tautology rather than front-loading a useful fact such as default filtering behavior. Brevity here comes from under-specification, not efficiency.

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

Completeness1/5

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

With no output schema, an undocumented `all` parameter, and no explanation of default filtering or return values, the definition leaves the agent without the information needed to call the tool confidently. The annotations carry almost all the available signal.

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 only 50%: the `context` parameter is documented in the schema, but `all` has no description and the tool description does not compensate by explaining that it includes stopped containers. Since coverage is below the high-coverage baseline, the description should have filled this gap and does not.

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 list_containers operation" only restates the tool name and title in different words, adding no verb-resource specificity. It does not distinguish this from podman_list_containers, k8s_list_containers, or docker_compose_ps, which an agent would need to pick correctly among.

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?

There is no when-to-use or when-not-to-use guidance at all. The name implies listing containers, but nothing says whether this covers running vs. stopped containers, or when a sibling container-listing tool is preferred.

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