Skip to main content
Glama

k8s_get_failing_pods

Identify Kubernetes pods that are not in Running or Succeeded state so you can quickly troubleshoot failing workloads in a namespace.

Instructions

List pods not in Running/Succeeded state.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "k8s_get_failing_pods"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does usefully define the failure predicate (anything not Running/Succeeded), which is the tool's core behavior. However it omits whether Pending/Unknown pods are included, whether the scan is cluster-wide, and whether it is a read-only, permission-free call. The existence of an output schema removes the need to describe return values.

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?

One sentence, front-loaded with the verb and the filter condition, with no filler or redundancy. The brevity is a specification gap rather than wordiness, which is scored elsewhere.

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 simple (one optional parameter) and has an output schema, so the description does not need to explain return shape. But with no annotations and a completely undocumented parameter, an agent still cannot tell the scope of the listing or the safety profile, leaving a meaningful gap for a triage tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter (namespace, default 'default') has 0% schema description coverage and is never mentioned in the description. Critically, it is unclear whether omitting it scopes to 'default' or scans all namespaces — a distinction that materially changes results. The description does nothing to compensate for the coverage gap.

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 ('List pods') plus the exact filter predicate ('not in Running/Succeeded state'), which is more precise than a bare 'get failing pods'. It does not name or contrast any sibling such as k8s_describe_pod or k8s_pod_logs, so the agent must infer which k8s tool to reach for, keeping it below a 5.

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?

There is no explicit when-to-use guidance, no prerequisites, and no named alternative. The agent can infer triage usage from 'failing', but nothing says when to prefer this over k8s_get_events or k8s_describe_pod for deeper diagnosis.

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