Kubernetes cluster snapshot
get_kubernetes_snapshotReturns the state of one Kubernetes cluster connected to Opservo: version, node conditions and capacity, workloads with ready counts and restarts, problem pods with their reason, last exit code and recent log lines, and recent warning events. Answers only for a cluster (kind kubernetes); a Linux server returns an error saying so.
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": {
"agent_id": "<agent_id>"
},
"name": "get_kubernetes_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The server/agent UUID to query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pods | No | ||
| error | No | Present only when the call failed: why, in plain English (unknown server, server from another workspace, not a Kubernetes cluster). | |
| nodes | No | ||
| events | No | Recent warning events. | |
| version | No | Kubernetes server version. | |
| workloads | No | ||
| collected_at | No | When the snapshot was taken, ISO 8601. |