Skip to main content
Glama

get_container_logs

Fetch recent container log lines and scan them for error patterns to diagnose issues without modifying the container. Read-only.

Instructions

Fetch the last tail log lines and scan them for error anomalies. Read-only.

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": {
      "container": "<container>"
    },
    "name": "get_container_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNo
containerYes
anomaly_regexNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It does declare 'Read-only' and describes the two-stage behavior (tail then anomaly scan), which is meaningful. But it omits what happens when the container doesn't exist, whether the scan can fail or be tuned, and any permission implications for a tool with zero annotation coverage.

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 action and scoped by the tail count. The trailing 'Read-only.' fragment is slightly abrupt but carries real information, and there is no filler.

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?

An output schema exists, so return values need not be described. For a read-only fetch tool with three simple non-nested parameters, the definition covers the core action and safety posture. The remaining gap is the undocumented `anomaly_regex` and any failure-mode behavior — noticeable but not disqualifying.

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 0%, so the description must define all three parameters. It explains `tail` semantically ('the last `tail` log lines') but says nothing about `container` or, more importantly, `anomaly_regex` — the one parameter whose purpose is genuinely non-obvious given the description already claims to scan for 'error anomalies'.

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 (fetch) and resource (container logs) and adds the distinguishing behavior: it scans the lines for error anomalies rather than returning raw logs. That separates it from siblings like container_events and container_stats without opening a schema, though it doesn't name an alternative directly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance or exclusion criteria at all. An agent is not told whether to use this instead of container_health or container_events when diagnosing a failing container, nor are prerequisites (container must exist/running) mentioned.

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