Skip to main content
Glama

read_compose_logs

Read-onlyIdempotent

Read logs for a specific container in a compose service to diagnose issues, filter by search term, limit output with tail, and select a time range with since.

Instructions

Read logs for one container in a compose service.

container_id comes from get_compose. since is 'all' or a duration like 5m or 2h.

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_id": "<compose_id>",
      "container_id": "<container_id>"
    },
    "name": "read_compose_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNo
sinceNoall
searchNo
compose_idYescomposeId from list_compose_services or get_project.
container_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the provenance of container_id and the accepted 'since' formats, but says nothing about truncation, whether tail caps the result, or how search filters output.

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?

Two short sentences, front-loaded with the core purpose, with no filler. The second sentence is slightly list-like but each clause carries needed information.

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

Completeness3/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 values need no explanation, and the annotations cover the safety profile. Still, two of five parameters (tail, search) have no meaning defined anywhere, which is a real gap for a log-reading tool where result size and filtering matter.

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 only 20% (only compose_id carries a schema description), so the description has to compensate. It does clarify 'since' with concrete examples ('all' or 5m/2h) and explains where container_id comes from, but leaves tail and search entirely undocumented in both schema and description.

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?

States a specific verb and resource ('Read logs') plus a clear scope qualifier ('for one container in a compose service'), which separates it from the application/deployment log readers in the sibling list. It does not name those siblings explicitly, so differentiation is inferential rather than spelled out.

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?

Useful prerequisite guidance is given: container_id must come from get_compose. However, there is no explicit statement of when to choose this over read_application_logs or read_deployment_logs, nor any exclusion of cases where a different log tool is appropriate.

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