Skip to main content
Glama

List Docker Containers

docker_container_list
Read-onlyIdempotent

Lists Docker containers with state, image, update availability, and the id needed by other container tools; filter results by name substring.

Instructions

Read-only. Lists Docker containers with state, image, whether an update is available, and the container id that the other docker_container_* tools and docker_autostart_set take (each concise line ends with [id: …]). Use name to filter by a container-name substring. For live CPU/memory use docker_stats; for a container's output use docker_container_logs.

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

Input Schema

NameRequiredDescriptionDefault
nameNoCase-insensitive substring of the container name; omit to list every container.
response_formatNo`detailed` returns full JSON instead of readable text.concise

Output Schema

NameRequiredDescriptionDefault
containersYes
data_age_msYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.3
    • addedInput schema / properties / name / description
      Added value: +"Case-insensitive substring of the container name; omit to list every container."
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior, so the description's 'Read-only' is a minor repeat. The description adds useful behavioral context beyond annotations: each concise line ends with `[id: …]`, and that id is the one other docker_container_* tools and docker_autostart_set consume. It does not discuss permissions or rate limits, but those are less critical for a read-only list tool.

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?

The description is front-loaded with 'Read-only. Lists Docker containers...' and uses three tight sentences. The parenthetical about `[id: …]` is useful, and every sentence adds either scope, filtering guidance, or sibling routing without waste.

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

Completeness5/5

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

Given rich annotations, full parameter schema coverage, and an output schema, the description is complete for an agent to call this tool correctly. It covers the listing contents, the id interoperability point, the name filter, and alternatives for related needs; return-value details are appropriately left to the output schema.

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%, so the schema already documents both parameters thoroughly. The description reinforces the `name` substring filter but adds no syntax or format details beyond the schema, and it does not mention the `response_format` parameter in prose. Baseline 3 is appropriate when the schema carries parameter documentation.

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

Purpose5/5

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

States a specific verb and resource ('Lists Docker containers') and enumerates what each listing includes: state, image, update availability, and the container id. It clearly distinguishes itself from siblings by naming docker_stats and docker_container_logs for different needs.

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

Usage Guidelines5/5

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

Explicitly directs the agent to use `name` for filtering and routes live CPU/memory needs to docker_stats and container output needs to docker_container_logs. This gives clear alternatives and implied exclusions, leaving little ambiguity about when to use this tool.

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