Skip to main content
Glama
dockndevai

mcp-kubernetes

by dockndevai

Get pod logs

get_pod_logs

Fetch recent logs from a specific Kubernetes pod container to diagnose issues. Use namespace, container, and tail lines to target the relevant output.

Instructions

Fetch recent logs from a pod container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPod name
contextNokube-config context to target (defaults to current-context)
previousNoFetch logs from the previous terminated container
containerNoContainer name (defaults to first container)
namespaceYesNamespace
tailLinesNoLines from the end (default 200)
Behavior3/5

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

With no annotations given, the description carries the behavioral burden, but it only says 'Fetch recent logs,' which implies read-only access and a limited scope. It does not disclose output format, default tail behavior, or what happens when a container is terminated, though some of this is encoded in parameter descriptions.

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 concise and direct, using a single sentence that gets straight to the point with no filler. It is easy to read and front-loaded with the relevant action and resource.

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?

The tool is relatively simple and the schema covers parameters fully, but this description is not complete field for successful calling. Since it has no output schema and no annotation signals, an agent would benefit from including details about outcome format or the default logging tail, which are not mentioned in the description.

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?

The input schema already documents all six parameters with helpful descriptions and defaults, so the tool description is not required to repeat them. The description remains neutral and not harmful, but it adds no extra parameters semantics beyond the schema.

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 identifies the action 'Fetch' and the resource 'pod container logs', making the tool's purpose immediately understandable. It is distinct from sibling tools like get_pod and list_pods because it targets log data specifically.

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 about when to use this tool versus alternatives. It does not mention when it is appropriate, when it is not, or offer any sibling comparisons.

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

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