Skip to main content
Glama

get_cluster_nodes

Retrieve cluster node details including roles, addresses, health status, and slot ranges for Valkey/Redis instances to monitor distributed database performance.

Instructions

Discover all nodes in the Valkey cluster — role (master/replica), address, health status, and slot ranges. Returns an error message if this instance is not running in cluster mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceIdNoOptional instance ID override

Implementation Reference

  • The tool 'get_cluster_nodes' handler implementation in the MCP server package, which fetches cluster node data via an internal API call.
    server.tool(
      'get_cluster_nodes',
      'Discover all nodes in the Valkey cluster — role (master/replica), address, health status, and slot ranges. Returns an error message if this instance is not running in cluster mode.',
      { instanceId: z.string().optional().describe('Optional instance ID override') },
      async ({ instanceId }) => {
        const id = resolveInstanceId(instanceId);
        const data = await apiFetch(`/mcp/instance/${id}/cluster/nodes`);
        return {
          content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }],
        };
      },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BetterDB-inc/monitor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server