Skip to main content
Glama
kube-sentinel-mcp
by ekrmcakir

k8s_get_pod_diagnostics

Retrieve deep pod diagnostics—container states, exit codes, restart counts, tail and crash logs, and events—to troubleshoot Kubernetes failures and identify root causes.

Instructions

Retrieve deep diagnostic information for a specific Kubernetes pod. Fetches container states, exit codes, restart counts, tail logs, previous crash logs, and events.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pod_name": "<pod_name>"
    },
    "name": "k8s_get_pod_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
pod_nameYes
namespaceNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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; it does disclose the concrete payload (log tails, previous crash logs, events), which tells the agent this is a read-only, potentially heavy inspection. It omits RBAC requirements for the pods/log subresource, any limit on log volume, and whether output is truncated.

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, front-loaded with the action and resource, then a compact enumeration of the returned data. No filler or restatement of the tool name.

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?

An output schema exists, so return-value detail is not required, and the description does hint at contents. However, for a cross-namespace-sensitive inspection tool with zero annotation and zero schema-parameter coverage, the missing namespace semantics and usage boundaries leave real gaps.

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?

Schema coverage is 0%, so the description must compensate, and it does not: 'specific Kubernetes pod' vaguely gestures at pod_name but namespace is never mentioned, including the fact that it defaults to 'default'. An agent could easily omit namespace and silently get default-namespace results.

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 ('Retrieve deep diagnostic information for a specific Kubernetes pod') and enumerates the artifacts returned (container states, exit codes, restarts, tail logs, previous crash logs, events). This clearly separates it from metrics, remediation, or RCA siblings, though it never names an alternative explicitly.

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 guidance on when to reach for this versus k8s_get_resource_metrics or k8s_run_rca, and no stated prerequisites such as needing pod name plus namespace context. The word 'diagnostic' implies a debugging scenario, but the agent must infer the trigger conditions.

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