Skip to main content
Glama
xenmcp-docker-agent

xenmcp-docker-agent

container_stats

Read-only

Retrieve current CPU, memory, network, and process statistics for one Docker container or all running containers (up to 30) to assess live resource usage.

Instructions

CPU (% of one core), memory, network and processes right now: one container, or all running ones (at most 30).

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": "container_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
containerNoContainer name (as in list_containers) or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, closed-world access, so the safety profile needs no restating. The description contributes beyond that with the '% of one core' unit (which prevents a common misreading of CPU values), the 'running ones' filter, and the hard cap of 30 results. Remaining gaps are minor: no mention of response shape or what happens when the cap is exceeded.

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?

A single dense sentence with the metric list and scope front-loaded and zero filler. The colon construction efficiently splits what is returned from which containers it covers.

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?

With no output schema, the description carries the burden of describing return values, and it does so by enumerating the four metric families. For a one-parameter read tool this is close to complete, though a hint about the response format or truncation behavior at 30 containers would close the last gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the container parameter's name-or-id format is already documented; the description adds real meaning by establishing that omitting the parameter fans out to all running containers. The 30-container cap is also a useful constraint not visible in the schema.

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?

Names the exact metrics returned (CPU, memory, network, processes) and the scope (one container or all running ones), which cleanly separates it from siblings like container_logs and inspect_container. It never uses an explicit verb like 'get' or 'report', so it stops just short of a perfect 5.

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?

'right now' signals a live snapshot rather than historical data, which implicitly steers away from log/event tools. However, there is no explicit statement of when to prefer this over inspect_container or docker_info, and no exclusions or prerequisites are given.

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