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

k8s_run_rca

Run automated root cause analysis on an unhealthy Kubernetes pod, classifying severity and failure category, synthesizing evidence, and assessing service impact.

Instructions

Execute automated Root Cause Analysis (RCA) on an unhealthy pod. Classifies incident severity, failure category, synthesizes evidence, and assesses service impact.

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_run_rca"
  }
}

Input Schema

NameRequiredDescriptionDefault
pod_nameYes
namespaceNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not say whether this is read-only or triggers side effects, what permissions or cluster access it needs, how long the analysis takes, or whether it must be re-run after remediation — all critical for an automated RCA that inspects a live cluster.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the action front-loaded and the outputs listed second; no filler. It could be slightly denser by folding the conditional guidance into that second sentence instead of a separate line.

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 values need not be explained, and the description does name the analysis dimensions. However, for a cluster-inspecting tool with zero annotation coverage and an undocumented defaulting namespace parameter, it leaves real operational questions unanswered.

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 description coverage is 0%, so the description must compensate and does not: pod_name and namespace get no explanation, and it is silent on whether namespace defaults to 'default' when the pod lives elsewhere, which is a realistic failure mode for cluster tooling.

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 (Execute) and resource (Root Cause Analysis) plus the target object (an unhealthy pod), and the second sentence enumerates the outputs: severity classification, failure category, evidence synthesis, impact assessment. It is clear what the tool produces, though it never names the sibling diagnostic tools it overlaps with.

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?

The precondition 'on an unhealthy pod' is the only usage signal; there is no statement of when to prefer this over k8s_get_pod_diagnostics or k8s_scan_incidents, and no guidance on whether prior data collection is required or whether the pod must already be failing.

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