Skip to main content
Glama
ziyuyu23

k8s-readonly-mcp

by ziyuyu23

get_pod_logs

Retrieve the most recent log lines from a Kubernetes pod to debug issues or monitor output. Specify pod name, namespace, and line count.

Instructions

Fetch the last N lines of logs for a pod (default 100 lines).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
tailNo
namespaceNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It only mentions fetching 'last N lines' and the default, but omits critical traits such as: whether logs are streamed or retrieved once, handling of pod not found, impact on the system, or any rate limits. This is insufficient for a tool with no annotation safety net.

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 with no filler. It is front-loaded with the key action and parameter guidance, earning its place.

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

Completeness3/5

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

Given the tool has 3 parameters and an output schema, the description is minimal. It does not explain that namespace defaults to 'default' or provide usage context (e.g., debugging). While the output schema reduces the need to describe returns, the description could be more complete for a straightforward log-fetching tool.

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 0%, so the description must add meaning. It explains 'tail' (last N lines) and implicitly ties 'name' to a pod, but does not mention the 'namespace' parameter at all. While it partially compensates for the missing schema descriptions, it leaves one of three parameters undocumented.

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 it fetches the last N lines of logs for a pod, with a default of 100 lines. This specific verb-resource combination distinguishes it from sibling tools like describe_pod (pod details) and list_pods (pod listing).

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 like describe_pod or list_pods. It lacks context about troubleshooting vs. general log monitoring, and does not mention prerequisites or exclusions.

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/ziyuyu23/k8s-readonly-mcp'

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