Skip to main content
Glama

Diagnose a pod

kube_diagnose_pod
Read-only

Diagnose unhealthy Kubernetes pods in one call and return status, likely causes, evidence, and suggested next commands for CrashLoopBackOff, ImagePullBackOff, OOMKilled, or unschedulable states.

Instructions

Diagnose why a pod is unhealthy in one call. Returns status, likely causes, suggested next commands, and evidence (CrashLoopBackOff/ImagePullBackOff/OOMKilled/Unschedulable/restarts).

Input Schema

NameRequiredDescriptionDefault
podYesPod name
contextNoKube context
namespaceNoNamespacedefault

Output Schema

NameRequiredDescriptionDefault
statusYes
evidenceYes
retainedNo
likelyCausesYes
suggestedNextCommandsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds substantive behavior by disclosing that it aggregates multiple signals into one call and enumerating what evidence categories it surfaces (CrashLoopBackOff, ImagePullBackOff, OOMKilled, Unschedulable, restarts). It stops short of stating limits, such as what it does with a healthy pod or whether the pod must already exist in the given context.

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?

Two sentences, zero filler, and the value proposition ('in one call') is front-loaded before the return contents. The parenthetical evidence list is dense rather than padded.

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

Completeness5/5

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

With an output schema present, return values need no prose explanation, and annotations cover safety; the description still adds the failure-mode scope an agent needs to judge applicability. All three parameters are fully documented in the schema, so nothing required to invoke it correctly is missing.

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 coverage is 100% with all three fields documented, including the namespace default, so the schema already carries semantics. The description adds nothing about how pod name relates to namespace or context, which is the correct baseline-3 position 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.

Purpose4/5

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

States a specific verb and resource plus the condition it targets ('Diagnose why a pod is unhealthy'), which is clearly distinct from raw retrieval tools like kube_get or kube_logs. It does not, however, differentiate itself from the nearby kube_pod_failure_summary sibling, leaving an agent to guess which diagnostic entry point to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'in one call' implies this should be preferred over manually chaining get/logs/events, which is useful implied guidance. But there is no explicit when-to-use or when-not statement and no sibling is named as an alternative or complement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.