diagnose_k8s_workload
Collects a correlated incident snapshot for a Kubernetes workload (Deployment, StatefulSet, DaemonSet), verifying referenced ConfigMaps, Secrets, and PVCs, warning events, and automatically deduplicating container error logs.
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": {
"parent": "<parent>",
"kind": "<kind>",
"name": "<name>"
},
"name": "diagnose_k8s_workload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Required. The workload kind (e.g. Deployment, StatefulSet, DaemonSet, Job). | |
| name | Yes | Required. The name of the workload. | |
| parent | Yes | Required. The cluster that owns the workload. Format: projects/{project}/locations/{location}/clusters/{cluster} | |
| namespace | No | Optional. Optional namespace of the workload. Defaults to "default" if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Errors encountered during workload diagnosis. | |
| result | No | JSON string representing the workload diagnostic snapshot. |