Skip to main content
Glama

get_pod_logs

Read-only

Retrieve the tail of a pod's container logs, with options to read from a previous crashed instance for troubleshooting crash loops.

Instructions

Fetch the tail of a pod's container logs. Set previous=true to read logs from a crashed container's prior instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNonumber of lines from the end of the log to return (default 100)
contextNokubeconfig context (cluster) to target; omit to use the default context
pod_nameYesname of the pod
previousNoreturn logs from the previous terminated instance of the container; useful for crash loops
containerNocontainer name; omit for a single-container pod
namespaceYesnamespace of the pod
Behavior3/5

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

Annotations already indicate readOnlyHint=true and openWorldHint=false. The description adds behavioral context for the previous parameter but does not disclose other traits like rate limits or output format. It does not contradict annotations.

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?

Two sentences, front-loaded with the main purpose, no waste. Efficient and to the point.

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 6-parameter, no-output-schema tool with full schema coverage, the description is sufficient. It covers the essential purpose and a key parameter use. Could mention return format but is acceptable.

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 baseline is 3. The description adds minimal additional meaning beyond repeating what is already in the schema (e.g., 'tail' implied by lines default). No enrichment of parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Fetch' and the resource 'pod's container logs', making the tool's purpose unambiguous. It distinguishes from siblings like describe_pod which provides pod details, not logs.

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

Usage Guidelines4/5

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

The description provides guidance on when to set previous=true for crash logs. However, it does not explicitly state when not to use this tool or mention alternatives among siblings, though the purpose differentiation is implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/1Shubham7/kubeaid-mcp-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server