get_kubectl_events
Retrieve recent Kubernetes events over SSH to diagnose cluster issues, optionally filtering warnings or targeting a namespace.
Instructions
Gets the most recent lines kubernetes events (kubectl get events), oldest first, below the
column header, by running
kubectl on a remote Linux host via SSH. kubectl must be configured for the SSH user there.
USE THIS TOOL FIRST when you don't know what is wrong in a cluster.
Events of ALL namespaces are returned unless namespace is given.
warnings_only=True keeps only events of type Warning (FailedScheduling, BackOff, Unhealthy...).
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": {
"host": "<host>",
"user": "<user>"
},
"name": "get_kubectl_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| lines | No | ||
| timeout | No | ||
| key_path | No | ||
| password | No | ||
| namespace | No | ||
| warnings_only | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||