Diagnose Cluster Issues (12-Step RCA)
diagnose_cluster_issuesRuns automated 12-Step kubectl apply root-cause analysis across a cluster or namespace to pinpoint stalled workloads and reliability gaps, returning ranked root causes with remediation commands.
Instructions
Run automated 12-Step kubectl apply Root-Cause Analysis (RCA) across a cluster or single namespace to detect stalled workloads and reliability gaps.
Inspects pods, events, nodes, deployments, statefulsets, daemonsets, services, configmaps, network policies, and Helm releases, folding symptoms across Steps 1-12 (API authn/authz, controllers, kube-scheduler, kubelet mount/CNI/image-pull/runtime, readiness probes, and EndpointSlice routing) into ranked root_causes with severity, confidence, and copy-paste remediation_cmd values. Returns cluster_id, namespace, health_score, summary, step_counts, pipeline_stages, components, integrations (Helm/Argo CD/Prometheus), root_causes, and raw_issues. Omit namespace (null) to scan all non-system namespaces, or pass one namespace to scope.
Use as the primary automated troubleshooting tool when investigating unhealthy workloads, CrashLoopBackOff, ImagePullBackOff, Pending pods, or unready services. Prefer get_workloads_overview for raw healthy/unhealthy counts without RCA folding, or get_pod_details and get_pod_logs to drill into a specific flagged pod.
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": {
"cluster_id": "<cluster_id>"
},
"name": "diagnose_cluster_issues"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | Optional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all non-system namespaces (system namespaces such as kube-system are excluded by default). | |
| cluster_id | Yes | Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | High-level RCA rollup: overall_score, active_root_causes, active_failures_count, workloads_healthy, and workloads_total. | |
| namespace | No | Scoped namespace scanned, or null when scanning all non-system namespaces. | |
| simulated | No | False for live cluster scans. | |
| cluster_id | No | Cluster identifier scanned. | |
| components | No | Per-Kubernetes-component (apiserver, scheduler, kubelet, probes, datapath) issue counts. | |
| raw_issues | No | Unfolded individual findings underlying `root_causes`. | |
| root_causes | No | Folded, ranked root causes with kind (active_failure/best_practice), step_number, severity, confidence, root_cause, affected resources, and remediation_cmd. | |
| step_counts | No | Active failure counts keyed by `kubectl apply` pipeline step number (1-12). | |
| folded_count | No | Number of deduplicated root-cause groups. | |
| health_score | No | Overall 0-100 cluster/namespace reliability health score. | |
| integrations | No | Detected delivery/observability pipelines (Helm, Argo CD, Prometheus) for the scanned scope. | |
| total_issues | No | Total unfolded raw findings detected. | |
| pipeline_stages | No | Grouped 12-Step pipeline stage statuses (healthy, warning, critical) with failure and advisory counts. |