Skip to main content
Glama

k8s_pods

Manage Kubernetes pods by listing, viewing details, retrieving logs with filtering, checking status, summarizing logs, and deleting pods with safety confirmations.

Instructions

Manage Kubernetes pods. Actions:

  • list: List pods in a namespace with optional label selector

  • get: Get pod details

  • delete: Delete a pod (requires confirm=true or dryRun=true)

  • get_logs: Get logs with filtering (severity, grep, time-based)

  • get_status: Get detailed pod status

  • summarize_logs: Get log summary statistics (90%+ token reduction)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform
nameNoPod name (required for most actions except list)
namespaceNoNamespace (optional)
labelSelectorNoLabel selector for list action (e.g., "app=nginx")
containerNoContainer name for logs (optional)
tailNoNumber of log lines to tail
previousNoGet logs from previous container instance
sinceSecondsNoOnly return logs newer than this many seconds
sinceTimeNoOnly return logs after this ISO 8601 timestamp
grepNoFilter logs with regex pattern
severityFilterNoOnly show logs at or above this severity level
maxBytesNoMaximum response size in bytes
confirmNoConfirm destructive action (required for delete unless dryRun=true)
dryRunNoPreview changes without executing (default: false)
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does well by specifying safety requirements for the delete action and mentioning log filtering capabilities. However, it misses critical details like authentication needs, rate limits, error handling, or what the tool returns (especially since there's no output schema). The description provides some behavioral context but leaves significant gaps for a multi-action tool.

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 efficiently structured with a brief introductory phrase followed by a bulleted list of actions, each with just enough detail. Every sentence earns its place by clarifying action purposes or constraints (e.g., the confirm/dryRun requirement for delete). It's front-loaded with the tool's scope and avoids redundancy.

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's complexity (14 parameters, 6 actions) and lack of both annotations and output schema, the description is moderately complete. It covers the action spectrum and key constraints but falls short on behavioral details like return formats, error cases, or prerequisites. For a multi-action Kubernetes tool with no structured safety or output information, it should provide more comprehensive guidance to fully compensate.

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 already documents all 14 parameters thoroughly. The description adds minimal parameter semantics beyond the schema—it mentions 'optional label selector' for list and 'filtering (severity, grep, time-based)' for get_logs, but doesn't provide additional syntax, format, or interaction details. This meets the baseline 3 when the schema does the heavy lifting.

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 tool's purpose as 'Manage Kubernetes pods' and enumerates six specific actions (list, get, delete, get_logs, get_status, summarize_logs), providing a comprehensive verb+resource scope. It effectively distinguishes this pod-focused tool from sibling tools like k8s_deployments or k8s_services, which target different Kubernetes resources.

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 clear context for when to use specific actions (e.g., 'list: List pods in a namespace with optional label selector'), and includes important constraints like 'delete: Delete a pod (requires confirm=true or dryRun=true)'. However, it lacks explicit guidance on when to choose this tool over sibling tools (e.g., k8s_deployments for deployment-level operations) or broader usage scenarios beyond the action list.

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/icy-r/kubemcp'

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