Skip to main content
Glama

Docker Container Stats

docker_stats
Read-onlyIdempotent

Read per-container Docker resource usage—CPU, memory, network, and block I/O—ranked by consumption, served from live WebSocket data or SSH fallback.

Instructions

Read-only. Per-container resource usage (CPU %, memory, network IO, block IO), hungriest first. Prefers fresh data from the live WebSocket subscription (subscribe to unraid://live/docker-stats to keep it warm) and falls back to docker stats --no-stream over SSH; the response says which source served it (live rows are labelled by container id, SSH rows by name). The SSH path requires UNRAID_SSH_* configuration. For host-wide CPU/memory use system_metrics; for the host's busiest processes use process_list.

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
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/no-destructive, and the description adds real behavioral context beyond them: a preferred live WebSocket source with an SSH `docker stats --no-stream` fallback, the fact that the response labels which source served it, and that live rows are keyed by container id vs name on the SSH path. The SSH configuration dependency is a meaningful operational caveat an agent could not infer.

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?

Front-loaded with 'Read-only' and the returned fields, then source behavior, then the sibling routing sentence. Dense parentheticals but each clause carries distinct information; nothing is redundant with the annotations or schema.

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?

For a single-parameter read tool with no output schema, it covers what is returned, ordering, data source precedence, fallback mechanics, the configuration prerequisite, output labeling, and when to pick alternatives. An agent has everything needed to call it and interpret the result.

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?

The single parameter (response_format) is fully documented in the schema at 100% coverage, so the schema carries the semantics and the description adds nothing about format selection. Baseline 3 applies; the description's remarks about response labeling concern output, not the parameter.

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 resource and the exact fields returned: per-container CPU %, memory, network IO, block IO, plus the ordering ('hungriest first'). It also names the two neighboring tools it is not (system_metrics, process_list), so an agent can separate it from siblings without opening a schema.

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?

Explicit routing rules: use system_metrics for host-wide CPU/memory and process_list for the host's busiest processes. It also states a prerequisite (UNRAID_SSH_* configuration for the SSH path) and how to keep the live source warm by subscribing to unraid://live/docker-stats.

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