Skip to main content
Glama

Pod logs

pod_logs
Read-onlyIdempotent

Read a pod's container logs to troubleshoot issues. Optionally retrieve logs from a specific container or previous crashed instance.

Instructions

Read a pod's container logs (most recent lines). Optionally a specific container or the previous instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPod name (from list_resources kind=pod)
previousNoRead the previous (crashed) container instance's logs
containerNoContainer name (defaults to the first / only container)
namespaceYesNamespace / project the pod is in
tail_linesNoHow many trailing lines to return (default 200)

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 cover readOnlyHint, idempotentHint, and destructiveHint, so the description adds context like 'most recent lines' and 'previous instance', which clarify what is returned. It does not disclose output format or whether pagination applies, but for a read-only tool this is acceptable.

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

Conciseness5/5

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

A single, front-loaded sentence states the core purpose immediately and omits any redundant phrasing. Every clause adds useful scope information.

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?

For a read-only log tool with a complete schema and robust annotations, the description and structured fields cover required parameters, defaults, and behavior. The lack of an output schema is not critical here since log output is inherently textual, but no return format is described.

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 100%, so the schema fully documents all five parameters, including defaults and limits. The description's mention of 'a specific container or the previous instance' merely echoes parameter meanings without adding new detail, meriting the baseline score.

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?

The description clearly states a specific action ('Read') and resource ('a pod's container logs'), and adds optional scope (container, previous instance). It does not explicitly distinguish itself from sibling tools like get_resource or list_events, so it falls short of a 5.

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?

The description gives no guidance about when to choose this tool over siblings or when not to use it. There is no mention of prerequisites (e.g., getting a pod name via list_resources) or any exclusions, leaving usage entirely implied by the verb 'Read'.

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