Skip to main content
Glama
xenmcp-docker-agent

xenmcp-docker-agent

recent_events

Read-only

Retrieve Docker container events such as start, stop, die, kill, OOM, restart, and health status within a time window of up to 7 days, defaulting to the last 24 hours, to diagnose container activity.

Instructions

Container events (start, stop, die with exit code, kill, oom, restart, health status) in a window, default the last 24 hours, at most 7 days and 300 events.

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

Input Schema

NameRequiredDescriptionDefault
sinceNo24h
containerNoContainer name (as in list_containers) or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds substantive constraints beyond them: a default 24-hour window, a 7-day maximum, and a 300-event cap. The 300-event cap is genuinely useful for an agent that may need to narrow the window or expect truncation, though the description does not say whether exceeding the limits errors or clamps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the resource and event types, then the window constraints. It is efficient with no filler, though the run-on parenthetical makes the limits slightly harder to scan than a short bulleted clause would.

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 two-parameter read tool with no output schema, the definition covers what is returned, the default and maximum time window, and the result cap — enough to call it correctly. Remaining gaps (event ordering, behavior on limit overflow, `since` format) are minor for this complexity level.

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 50%: the `container` parameter is documented in-schema, but `since` is not. The description supplies its default (24h) and maximum span (7 days), which recovers part of the gap, but it never states the accepted format (duration string vs. timestamp), so an agent must guess the syntax for the one undocumented parameter.

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 names a specific resource (container events) and enumerates the exact event kinds returned (start, stop, die with exit code, kill, oom, restart, health status), which cleanly separates it from container_logs and container_stats. It stops short of explicitly naming a sibling as the alternative, but the enumeration leaves little ambiguity about what this tool returns.

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-type list and the time-window framing, so an agent can infer this is the tool for lifecycle/health event history rather than log content or resource metrics. There is no explicit when-to-use or when-not-to-use statement, and no guidance on what to do when the requested window exceeds the 7-day limit.

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