Skip to main content
Glama

get_docker_state

Lists Docker containers with status, ports, and health; optionally includes recent logs. Filter by name to inspect running containers in your local dev environment.

Instructions

List Docker containers with their status, ports, and health. Optionally include recent 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": "get_docker_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
filter_nameNoFilter containers by name (case-insensitive substring match)
include_logsNoInclude the last 20 log lines for each running container

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 behavioral burden. 'List' implies a read-only operation and the description says what data comes back, but it says nothing about preconditions such as requiring a running Docker daemon, or how it behaves when Docker is unavailable, or whether logs are truncated.

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?

Two short sentences, front-loaded with the primary behavior and followed by the optional capability. Every clause carries information and there is no filler.

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?

For a simple read-only listing tool with two optional parameters, no output schema, and full schema coverage, the description covers purpose and scope adequately. The main omission is environmental prerequisites (Docker daemon availability) and the absence of any routing to overlapping 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 coverage is 100%, with both parameters fully documented including the case-insensitive substring matching and the 20-line log cap, so the description need not compensate. It mentions the optional logs but adds no meaning beyond the schema for filter_name, 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 Docker containers') plus the fields returned (status, ports, health), which clearly distinguishes it from siblings like get_project_structure or get_env_summary. It stops short of naming an alternative or explicitly contrasting itself with get_recent_logs or check_service_health.

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 and no mention of alternatives, even though sibling tools (get_recent_logs, check_service_health, get_open_ports) overlap on logs, health, and port information. The only usage hint is 'Optionally include recent logs', which concerns a parameter, not tool selection.

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