Skip to main content
Glama
jkmills

Nutanix MCP Server

by jkmills

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

TableJSON Schema
NameRequiredDescriptionDefault
cluster_uuidYesThe UUID (extId) of the cluster

Implementation Reference

  • 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"],
        },
    },
  • 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,
    }
  • 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,
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully convey behavioral traits. It describes what is returned but does not disclose that this is a read-only operation, any authentication requirements, rate limits, or potential side effects. The lack of such information reduces transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that efficiently conveys the purpose and key details. No unnecessary words, and the core action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple get tool with one parameter and no output schema, the description covers the essential purpose and return categories. However, it lacks information about potential error cases, response format, or pagination (if applicable). It is adequate but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single parameter, so the baseline is 3. The description adds the context 'by UUID' but the schema already describes the parameter as 'The UUID (extId) of the cluster'. No additional semantic value is provided beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get detailed information'), the resource ('cluster'), and the scope ('by UUID'). It also lists the categories of details returned (configuration, network, storage, health). This distinguishes it from sibling tools like list_clusters (which returns summaries) and other get_* tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when you have a specific cluster UUID and need detailed info, but it does not explicitly state when to use this tool vs alternatives (e.g., list_clusters for listing all clusters, or pe_get_cluster_info for Prism Element). No exclusions or prerequisites are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/jkmills/nutanix-mcp-server'

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