get_slot_stats
Retrieve per-slot key counts and CPU usage to identify hot or most populated cluster slots; failedNodes reveals primaries that didn't respond. Valkey 8.0+ only.
Instructions
Get per-slot key counts and CPU usage (Valkey 8.0+ only). Use orderBy='cpu-usec' to find hot slots, or 'key-count' to find the most populated slots. Returns { slots, failedNodes }; failedNodes lists cluster primaries that did not answer, whose slots are missing. Returns an error message if not supported.
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_slot_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max slots to return (default 20) | |
| orderBy | No | Sort order: 'key-count' or 'cpu-usec' (default 'key-count') | |
| instanceId | No | Optional instance ID override |