Get events
get_eventsFetch Kubernetes events (Normal/Warning) as summary rows: type, reason, message (cut to 200 characters; message_truncated says when), involved object, count, first and last timestamp. Warning events sort first, newest first within each type. A list needs namespace, an involved_object_name, or all_namespaces=true, and carries total, returned, truncated and scope. Events reveal why pods fail, deployments stall, and what errors occurred.
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": "get_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of events to return. | |
| namespace | No | Kubernetes namespace to list events from. A list needs this, an involved_object_name, or all_namespaces=true. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| all_namespaces | No | Set true to list every namespace on the cluster deliberately. Omit it and pass namespace to list one namespace; a list with neither is refused (error_code scope_required). | |
| involved_object_kind | No | Filter events by resource kind (e.g., 'Pod', 'Deployment'). | |
| involved_object_name | No | Filter events related to a specific resource name. |