Get pod usage
get_pod_usageLive CPU and memory usage per pod, measured by metrics-server right now (the twin of ankra cluster top pods), summed over the pod's containers, optionally with the per-container breakdown. Filter to one namespace or read every namespace. Never answered from a cache, so a result is always a fresh measurement; fails when the agent is unreachable or metrics-server is not installed. Use this to find what is actually consuming a node; get_pods shows requests and limits, not usage. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_pod_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many rows to return (default 25). | |
| sort_by | No | Order the rows by CPU (default) or memory, highest first. | |
| namespace | No | Only pods in this namespace. Omit for every namespace. | |
| cluster_id | No | UUID of the target cluster. Optional when a cluster is selected. | |
| cluster_name | No | Exact name of the target cluster. Optional when a cluster is selected. | |
| include_containers | No | Include the per-container usage under each pod (default false). |