Skip to main content
Glama

Compose logs

docker_compose_logs

Retrieve logs for a Docker Compose stack or specific service using a compose file and optional context to diagnose container issues.

Instructions

Invoke the compose_logs operation.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "compose_file": "<compose_file>"
    },
    "name": "docker_compose_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
serviceNo
compose_fileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.5/5.0
Behavior1/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, which is already counterintuitive for a logs tool, and the description provides no clarification of that profile. It says nothing about what logs are returned, whether output streams or paginates, or what compose_file/context resolution implies.

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

Conciseness2/5

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

It is short, but the brevity is under-specification rather than economy: a single generic sentence that front-loads nothing useful. There is no wasted wording because there is almost no content at all.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter tool with a required compose_file, 33% schema coverage, no output schema, and annotations that raise questions (readOnlyHint=false, openWorldHint=true), the description is wholly inadequate. An agent cannot confidently construct a call or predict the result.

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

Parameters2/5

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

Schema description coverage is 33%: only the context parameter is documented, while compose_file (required) and service have no schema descriptions. The description adds no meaning for any parameter, so it fails to compensate for the coverage gap; only the one schema-documented param keeps this above the floor.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Invoke the compose_logs operation" restates the tool name with a generic verb and adds no resource scope, target, or distinguishing detail. It is arguably minimal tautology rather than a stated purpose, so it sits between tautology and vague purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

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

There is no when-to-use guidance, no when-not-to-use, and no reference to any alternative such as docker_service_logs, docker_get_container_logs, or the k8s/podman compose siblings. The agent must infer everything from the name alone.

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

Deploy Server

Other Tools