Skip to main content
Glama

container_events

Lists recent Docker container lifecycle events—start, die, OOM, health status, restart—in reverse chronological order to help diagnose activity within a chosen time window.

Instructions

Recent container events (start, die, oom, health_status, restart...), newest first, max 200. Read-only.

since_minutes is clamped to 1-1440. Exec events report the action only, never the command.

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

Input Schema

NameRequiredDescriptionDefault
containerNo
since_minutesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does so well: it declares read-only access, discloses the 200-event result cap, the newest-first ordering, the since_minutes clamping range, and an important data limitation (exec events report the action only, never the command). Missing only things like permission requirements or behavior when container is omitted.

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?

Three short sentences, front-loaded with what the tool returns and its ordering, then constraints and caveats. No redundant or filler text; the parenthetical event list earns its place as scoping 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?

An output schema exists, so return formatting need not be described, and the description handles the behavioral profile competently despite absent annotations. The remaining gap is the undocumented container parameter semantics; otherwise an agent has enough to call this correctly.

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 0%, so the burden is entirely on the description. It meaningfully documents since_minutes (clamped to 1-1440), but says nothing about the container parameter — notably whether omitting it aggregates events across all containers, which is the key selection decision.

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 resource and verb-like action: recent container events, with concrete event kinds (start, die, oom, health_status, restart), newest-first ordering, and a 200-event cap. This clearly separates it from siblings like container_stats or get_container_logs by content type, though it never names an alternative explicitly.

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?

Usage is implied by the event types listed — an agent can infer this answers 'what happened recently' rather than 'what is the current state.' There is no explicit when-to-use vs. when-not guidance, and no alternative tool such as get_container_logs is named for the log-vs-event distinction.

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