Skip to main content
Glama

Get container logs

podman_get_container_logs
Read-onlyIdempotent

Retrieve Podman container logs by container ID to diagnose issues and inspect runtime output, with an optional tail limit for recent entries.

Instructions

Invoke the get_container_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": {
      "container_id": "<container_id>"
    },
    "name": "podman_get_container_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNo50
container_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.3/5.0
Behavior1/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, but the description adds no behavioral context at all — nothing about streaming vs snapshot behavior, default tail window, or error cases for missing containers. It neither contradicts nor enriches the annotations.

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 sentence is short and front-loaded, but it is under-specified rather than concise — every word restates the tool name and nothing earns its place by informing the caller.

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 two-parameter tool with zero schema coverage and no output schema, the description should explain the container identifier, the tail window, and the log format returned. None of this is present, so an agent must guess at invocation semantics.

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 description coverage is 0%, so the description must compensate and it does not. Neither the required container_id nor the tail parameter (default "50") is mentioned, leaving the meaning and format of tail entirely undocumented.

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 get_container_logs operation" is a tautology that merely restates the tool name rather than stating what the tool does. An agent can infer log retrieval from the name, but the description itself contributes no verb-plus-resource statement and does not distinguish this from siblings like podman_pod_logs or podman_compose_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, no mention of alternatives such as docker_get_container_logs or podman_pod_logs, and no exclusions or prerequisites. The single sentence gives the agent nothing to route on beyond the tool name.

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