Skip to main content
Glama

docker_log_summary

Aggregate one Docker container's logs into status-code mixes, error rates, top paths, or grouped error patterns, with raw logs kept on-host.

Instructions

Aggregate one container's log stream: web-style parsing (status-code mix, 4xx/5xx error rates, top request paths) when the stream looks like access logs (plain or JSON), error-pattern grouping otherwise. Aggregation happens client-side — raw container logs never leave the box's operator. Read-only. Returns JSON: {kind, status_mix, error_rate_4xx, error_rate_5xx, top_paths: [{path, requests}], error_patterns: [{pattern, count, sample}], lines_scanned}. Errors: docker_not_available, docker_permission_denied, container_not_found, no_logs_available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNoMax rows per section (1-100, default 20).
containerYesContainer name or ID.
instance_idYesInstance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'.
since_minutesNoLookback window in minutes (1-10080, default 1440).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.0
    • changedInput schema / properties / instance_id / description
      Previous value: -"Instance ID or name."New value: +"Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'."
  2. Addedv2.24.0
  3. Removedv2.23.8
  4. Addedv2.23.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares 'Read-only', discloses that aggregation is client-side and raw logs never leave the operator, and enumerates the failure modes (docker_not_available, docker_permission_denied, container_not_found, no_logs_available). It stops short of describing rate limits or scan cost.

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?

Front-loaded with the aggregation purpose, followed by mode behavior, privacy note, result shape and errors. Dense but each clause carries distinct value; not padded.

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?

No output schema exists, yet the description spells out the returned JSON fields (kind, status_mix, error_rate_4xx/5xx, top_paths, error_patterns, lines_scanned) and the named error set, so an agent knows both what it gets and how it fails.

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 100%, so instance_id, container, top_n and since_minutes are already documented with ranges and defaults. The description adds no constraint meaning beyond that, so the baseline 3 applies.

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 verb (aggregate) and resource (one container's log stream) and immediately signals its distinction from a raw-log sibling by naming the two summarization modes. An agent can tell this apart from docker_logs 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the internal conditions under which it switches parsing modes, which is useful behavior context, but never states when to choose this over docker_logs or docker_events_summary. Usage is implied rather than routed.

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