Skip to main content
Glama

docker_list_containers

Read-onlyIdempotent

List Docker containers, optionally including stopped ones, with label filters and summary or full output for inspection.

Instructions

List all Docker containers (same container set as docker ps)

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
allNoShow all containers (default shows just running)
formatNoOutput verbosity. `summary` returns a compact `docker ps`-style row (no health-check logs, labels or image digests); `full` returns the inspect-level object. Defaults to `summary` for listings.summary
filtersNoFilter containers

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and closed-world, so safety is covered. The description adds only the `docker ps` equivalence, which usefully implies the default view is running containers, but says nothing about pagination, size, or the cost of listing on a large host, which annotations do not cover either.

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?

A single front-loaded sentence with no filler, but it is arguably too terse for a tool with three filtering/verbosity parameters — one more clause on scope would still fit without bloat.

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

Completeness4/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 no explanation, parameters are fully documented, and annotations carry the safety profile. The only real gap is routing guidance relative to the inspect/processes siblings.

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 description coverage is 100% and the enum for `format` plus the `all` and label filter semantics are already documented in the schema. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 ('List all Docker containers') and anchors it to a well-known reference ('same container set as `docker ps`'), which lets an agent distinguish it from inspect/processes siblings on other resources. It does not explicitly name the closest alternative (docker_container_inspect), so it stops short of a 5.

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: the `docker ps` analogy hints this is the quick enumeration entry point, but there is no statement of when to prefer it over docker_container_inspect or docker_container_stats, and no exclusions.

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