Skip to main content
Glama

Compose logs

k8s_compose_logs

Retrieve logs from Docker Compose services defined in a compose file, optionally filtered by service or 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": "k8s_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.6/5.0
Behavior2/5

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

Annotations already supply readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the description's marginal burden is low, but it contributes nothing — no mention of output format, streaming behavior, tail/follow semantics, or cluster-context requirements. It does not contradict the annotations, but a log-retrieval tool whose description never mentions logs is opaque.

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?

The single sentence is short but earns nothing; this is under-specification rather than conciseness. There is no structure because there is no content to organize.

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 three-parameter, no-output-schema tool in a crowded log-tool family, the definition is completely inadequate. An agent must open the schema and guess the purpose before it can call this correctly.

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

Parameters1/5

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

Schema coverage is only 33%: 'context' is documented in the schema, while 'compose_file' (the sole required parameter) and 'service' have no descriptions at all. The description does not compensate — it names no parameters and gives no hint about file paths or service filtering.

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 and title without adding a verb-with-resource explanation. It never says what compose_logs actually does (fetch or stream container logs from a compose file) nor how it differs from docker_compose_logs, podman_compose_logs, or k8s_read_pod_logs.

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 at all. With roughly ten log-related siblings in the catalog, the definition gives an agent no basis for choosing this tool over docker_compose_logs, podman_compose_logs, or k8s_service_logs.

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