Skip to main content
Glama

Docker Container Health

docker_container_health

Inspect the health and state of a specific Docker container by identifier to diagnose issues and verify runtime status.

Instructions

Inspect health and state of a specific container.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "identifier": "<identifier>"
    },
    "name": "docker_container_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYes

Output Schema

NameRequiredDescriptionDefault
idYes
pidNo
deadYes
nameYes
errorNo
stateYes
pausedYes
statusYes
runningYes
exit_codeNo
health_logNo
oom_killedYes
restartingYes
started_atNo
finished_atNo
health_statusNo
restart_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden of behavioral disclosure. It implies a read operation via "Inspect" but never confirms read-only safety, says nothing about permissions or what happens with an unknown container, and gives no hint about scope of the returned data. With an output schema present the return shape needn't be spelled out, but the safety/behavior profile remains undeclared.

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 short sentence with zero padding and the verb+resource front-loaded. It is efficient, though its brevity is part of the reason key semantics are missing rather than a sign of tight authoring.

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

Completeness2/5

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

The output schema covers return values, but for a tool whose only input is an ambiguous identifier and whose behavior is unannotated, the description leaves critical gaps: identifier format and selection guidance versus the inspect/logs siblings. It is under-specified for the tool's actual decision surface.

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?

The single parameter "identifier" has 0% schema description coverage, so the description must compensate and does not. It never clarifies whether identifier is a container name, short ID, or full ID, nor any format constraints beyond the schema's length bounds.

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 ("Inspect") and resource ("health and state of a specific container"), which is clear on its own. It does not, however, distinguish itself from close siblings like docker_container_inspect or docker_containers, so an agent must infer the difference from names alone.

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 guidance at all — nothing says whether this is the right tool for a quick status check versus a full config dump, or when docker_container_inspect should be used instead. The agent is left to guess based on sibling names.

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