get_cluster_nodes
Discover all nodes in a Valkey cluster with their role, address, state, and slot ranges. Identify failed, suspect, or healthy nodes and see which ones have active monitoring connections.
Instructions
Discover all nodes in the Valkey cluster — role (master/replica), address, state, and slot ranges. Each node has a state: failed when its peers agreed it is down (the fail flag), suspect when they only suspect it (fail?, PFAIL) or it is not a full member yet (handshake, noaddr), and healthy otherwise. The healthy boolean is deprecated: it is true only when state is healthy, use state instead. On Valkey 9.1+ each node also carries shardId, and availabilityZone when the node has one configured. On older versions availabilityZone comes from the zone map set on the connection, if any. collected is true when a connection of the monitor points at the node (its address or announced hostname) and is not known to read another node there, or the node is the one this instance reads; connectionId then names that connection. A node that is not collected has no connection of its own: its slow log, client list and stored metrics are not gathered. Cluster-wide checks can still raise events about it. Returns an error message if this instance is not running in cluster mode.
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_cluster_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | No | Optional instance ID override |