Skip to main content
Glama

get_docker_container_top

Returns container processes with fixed PID, PPID, user, state, and executable columns to debug container-level process state. Ignores custom args and requires a reachable Docker daemon.

Instructions

Returns container processes with fixed PID, PPID, user, state, and executable-name columns, without command arguments. Custom args are ignored. Read-only via the Docker API; fatal if the daemon is unreachable or the container is unknown. Use to debug container-level process state.

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": {
      "container_id": "<container_id>"
    },
    "name": "get_docker_container_top"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNolegacy field; ignored to prevent command and environment disclosure
container_idYescontainer name or ID

Output Schema

NameRequiredDescriptionDefault
errorsNo
titlesYes
processesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / args / description
      Previous value: -"optional arguments to ps (e.g. aux)"New value: +"legacy field; ignored to prevent command and environment disclosure"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares read-only access via the Docker API, warns that failure is fatal when the daemon is unreachable or the container unknown, and explains that custom args are ignored to prevent command/environment disclosure. It does not cover latency or output volume for large process lists, which keeps it from a 5.

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?

Three dense sentences, each front-loading the returned columns before the behavioral caveats. Slight redundancy between 'without command arguments' and 'Custom args are ignored', but nothing is wasted overall.

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 not be explained, yet the description still names the columns, and it covers the safety and failure modes an agent needs before calling. The only gap is how it compares to overlapping container inspection 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 already 100%, so the schema documents both args and container_id. The description repeats that custom args are ignored and clarifies the security rationale, but adds no new syntax or format meaning for container_id. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb and resource ('Returns container processes') and pins down the exact output shape (PID, PPID, user, state, executable name, no command args), which lets an agent distinguish it from general container tools. It stops short of naming a sibling alternative explicitly, so it is clear but not maximally differentiated.

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?

'Use to debug container-level process state' gives an implied usage context but no when-not-to-use conditions and no pointer to sibling tools like get_docker_container_stats or get_process_tree. The agent must infer the boundary itself.

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