get_cluster
Retrieve detailed configuration, network, storage, and health information for a Nutanix cluster using its UUID.
Instructions
Get detailed information about a specific cluster by UUID. Returns configuration, network, storage, and health details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_uuid | Yes | The UUID (extId) of the cluster |
Implementation Reference
- src/nutanix_mcp/tools/cluster.py:139-148 (handler)The handler function for 'get_cluster'. Calls client.v4_get() to fetch cluster details by UUID from the Nutanix clustermgmt API.
async def handle_get_cluster( client: NutanixClient, arguments: dict[str, Any] ) -> dict[str, Any]: """Get cluster details using v4 clustermgmt API.""" cluster_uuid = arguments["cluster_uuid"] result = await client.v4_get( namespace="clustermgmt", path=f"config/clusters/{cluster_uuid}", ) return result.get("data", result) - Input schema definition for 'get_cluster' tool. Requires a 'cluster_uuid' string parameter.
{ "name": "get_cluster", "description": ( "Get detailed information about a specific cluster by UUID. " "Returns configuration, network, storage, and health details." ), "inputSchema": { "type": "object", "properties": { "cluster_uuid": { "type": "string", "description": "The UUID (extId) of the cluster", }, }, "required": ["cluster_uuid"], }, }, - src/nutanix_mcp/tools/cluster.py:253-259 (registration)Dispatch table mapping 'get_cluster' string to handle_get_cluster handler function.
CLUSTER_HANDLERS: dict[str, Any] = { "list_clusters": handle_list_clusters, "get_cluster": handle_get_cluster, "list_hosts": handle_list_hosts, "get_host": handle_get_host, "list_storage_containers": handle_list_storage_containers, } - src/nutanix_mcp/server.py:23-41 (registration)CLUSTER_HANDLERS imported and merged into ALL_HANDLERS dict, which is used to dispatch tool calls in the server.
from nutanix_mcp.tools.cluster import CLUSTER_HANDLERS from nutanix_mcp.tools.prism_element import PE_HANDLERS from nutanix_mcp.tools.report import REPORT_HANDLERS from nutanix_mcp.tools.networking import NETWORKING_HANDLERS from nutanix_mcp.resources import ( RESOURCE_TEMPLATES, STATIC_RESOURCES, resolve_resource, ) from nutanix_mcp.prompts import PROMPTS, PROMPT_HANDLERS # Merge all handler dispatch tables ALL_HANDLERS: dict[str, Any] = { **VM_HANDLERS, **CLUSTER_HANDLERS, **PE_HANDLERS, **REPORT_HANDLERS, **NETWORKING_HANDLERS, }