Skip to main content
Glama

Container resource stats

container_stats

Capture a live snapshot of a container's CPU, memory, and network I/O usage to diagnose performance bottlenecks causing server slowdowns.

Instructions

Take a one-shot snapshot of a container's live CPU %, memory usage and network I/O. Useful to answer 'why is my server slow?'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
containerYesContainer name, short id or full id.
Behavior3/5

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

With no annotations, the description carries full burden. It describes a 'one-shot snapshot' implying a read-only operation, but does not explicitly confirm non-destructiveness, rate limits, or potential performance impact. The behavior is fairly clear but could be improved.

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?

Two sentences, front-loaded with the core purpose and a practical use case. Every word adds value; no redundancy or fluff.

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?

Given the tool's simplicity (1 param, no output schema, no annotations), the description is largely complete. It explains what metrics are captured and provides a use scenario. Missing details about return format or units, but for a snapshot tool, the agent can infer.

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 description coverage is 100% with a single parameter 'container' described as 'Container name, short id or full id.' The description adds no extra meaning beyond the schema, so baseline 3 is appropriate.

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?

The description clearly states the tool captures a live snapshot of CPU%, memory usage, and network I/O for a container. The verb 'snapshot' is specific, and the resource is clearly the container's live stats. This distinguishes it from sibling tools like inspect_container or container_logs.

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?

The description mentions it is 'useful to answer why is my server slow?' which gives a use case but does not explicitly state when to use or avoid this tool versus alternatives. No comparisons to sibling tools or exclusions are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/soyrageagency/docker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server