Skip to main content
Glama
mjrestivo16
by mjrestivo16

k8s_get_pod_logs

Retrieve container logs from Kubernetes pods to monitor application behavior, troubleshoot issues, and analyze performance. Specify pod name, namespace, container, and time range for targeted log extraction.

Instructions

Get logs from a pod container

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPod name
namespaceNoNamespace
containerNoContainer name (if pod has multiple containers)
tailNoNumber of lines to show from end of logs
previousNoGet logs from previous instance of container
sinceNoOnly return logs newer than a relative duration (e.g., 5m, 1h)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Get logs' implies a read-only operation, but it doesn't specify permissions required, potential side effects (e.g., if logs are streamed or fetched), rate limits, or output format (e.g., text, structured data). This leaves significant gaps for a tool that interacts with Kubernetes pods.

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?

The description is a single, efficient sentence ('Get logs from a pod container') that is front-loaded and wastes no words. It directly states the core function without unnecessary elaboration, making it highly concise and well-structured.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of Kubernetes operations, no annotations, and no output schema, the description is incomplete. It lacks details on behavioral traits (e.g., authentication needs, error handling), usage context compared to siblings, and what the logs output looks like, making it inadequate for safe and effective tool invocation.

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%, with all 6 parameters clearly documented in the input schema (e.g., 'name' as 'Pod name', 'tail' as 'Number of lines to show from end of logs'). The description adds no additional meaning beyond this, so it meets the baseline of 3 where the schema does the heavy lifting.

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

Purpose3/5

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

The description 'Get logs from a pod container' clearly states the verb ('Get logs') and resource ('pod container'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'k8s_describe_pod' or 'k8s_get_pod', which might also provide log-related information or pod details, leaving some ambiguity about when this specific tool is the best choice.

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 provides no guidance on when to use this tool versus alternatives. With many sibling tools (e.g., 'k8s_describe_pod', 'k8s_get_pod', 'k8s_exec_pod'), there's no indication of prerequisites, typical use cases, or distinctions, leaving the agent to infer usage from the name alone.

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/mjrestivo16/mcp-kubernetes'

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