Skip to main content
Glama

docker_stats

Read-only

Retrieves CPU, memory, network, and block I/O usage for all running Docker containers, optionally from a remote server, so you can monitor resource consumption.

Instructions

Get resource usage statistics (CPU, memory, network, block I/O) for all running Docker containers

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

Input Schema

NameRequiredDescriptionDefault
serverNoRemote server name from config (optional, runs locally if omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds that results cover all running containers (implying no per-container filter and no output for stopped containers), but it says nothing about whether this is a one-shot snapshot or a sampled/streaming read, and gives no volume expectation for large host counts.

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?

One sentence, front-loaded with the verb and the returned metric set, with zero filler. Nothing could be removed without losing information.

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 tool with one optional parameter and no output schema, the description usefully enumerates the returned metric families, which compensates for the absent output schema. The remaining gap is whether results are a snapshot or live samples, which matters for an agent building on the response.

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% and the single optional `server` parameter is already documented in the schema, including the local-run default. The description does not touch the parameter at all, which is acceptable given the schema, but adds nothing beyond it.

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?

Specific verb ("Get") plus resource ("resource usage statistics") plus explicit metric categories and scope ("all running Docker containers"). It separates itself from docker_list/docker_inspect by naming metrics rather than container metadata, though it does not call out how it differs from the similar-sounding docker_top.

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, no exclusion of alternatives such as docker_top or docker_inspect, and no mention of what to do if a container is stopped. Usage has to be inferred entirely from the one-line purpose.

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