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)

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