Skip to main content
Glama
jkmills

Nutanix MCP Server

by jkmills

list_storage_containers

List storage containers across clusters, returning names, capacity, usage, and associated cluster. Filter by cluster UUID.

Instructions

List storage containers available across clusters. Returns names, capacity, usage, and associated cluster.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_uuidNoFilter to a specific cluster UUID
limitNoMaximum number of results. Omit to retrieve all (auto-paginates).

Implementation Reference

  • The handler function that executes the list_storage_containers tool logic. Calls v4 clustermgmt API to list storage containers, optionally filtered by cluster UUID. Returns name, extId, capacity, replication factor, compression, encryption, and cluster info.
    async def handle_list_storage_containers(
        client: NutanixClient, arguments: dict[str, Any]
    ) -> dict[str, Any]:
        """List storage containers using v4 clustermgmt API."""
        cluster_uuid = arguments.get("cluster_uuid")
        limit = arguments.get("limit")
    
        if cluster_uuid:
            path = f"config/clusters/{cluster_uuid}/storage-containers"
        else:
            path = "config/storage-containers"
    
        result = await client.v4_list_all(
            namespace="clustermgmt",
            path=path,
            max_results=limit,
        )
    
        containers = result.get("data", [])
        metadata = result.get("metadata", {})
        return {
            "count": len(containers),
            "truncated": metadata.get("truncated", False),
            "storageContainers": [
                {
                    "name": sc.get("name"),
                    "extId": sc.get("containerExtId"),
                    "maxCapacityBytes": sc.get("maxCapacityBytes"),
                    "replicationFactor": sc.get("replicationFactor"),
                    "compressionEnabled": sc.get("isCompressionEnabled"),
                    "encrypted": sc.get("isEncrypted"),
                    "clusterExtId": sc.get("clusterExtId"),
                    "clusterName": sc.get("clusterName"),
                }
                for sc in containers
            ],
        }
  • Tool definition with input schema for list_storage_containers. Defines optional 'cluster_uuid' (string) and 'limit' (integer) parameters.
    {
        "name": "list_storage_containers",
        "description": (
            "List storage containers available across clusters. "
            "Returns names, capacity, usage, and associated cluster."
        ),
        "inputSchema": {
            "type": "object",
            "properties": {
                "cluster_uuid": {
                    "type": "string",
                    "description": "Filter to a specific cluster UUID",
                },
                "limit": {
                    "type": "integer",
                    "description": "Maximum number of results. Omit to retrieve all (auto-paginates).",
                },
            },
        },
    },
  • Handler dispatch table mapping 'list_storage_containers' to the handle_list_storage_containers function. Merged into ALL_HANDLERS in server.py.
    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,
    }
  • ALL_HANDLERS merges CLUSTER_HANDLERS (which includes list_storage_containers) into the global dispatch table used by the call_tool handler.
    ALL_HANDLERS: dict[str, Any] = {
        **VM_HANDLERS,
        **CLUSTER_HANDLERS,
        **PE_HANDLERS,
        **REPORT_HANDLERS,
        **NETWORKING_HANDLERS,
    }
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the return fields and mentions auto-pagination via the limit parameter, but does not address side effects, authentication requirements, rate limits, or any other behavioral traits beyond the basic read operation.

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 extremely concise: two sentences front-load the purpose and return fields. There is no redundant information, and every sentence adds value.

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

Completeness4/5

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

Given there is no output schema, the description adequately lists return fields. It mentions filtering and auto-pagination. However, it could be more complete by specifying any default sort order, error scenarios, or behavior when no containers are found.

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 coverage is 100%, so the description adds minimal additional meaning. The schema already describes cluster_uuid filtering and limit with auto-pagination. The description neither contradicts nor significantly extends the schema definitions.

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 (list storage containers), scope (across clusters), and what is returned (names, capacity, usage, associated cluster). It distinguishes itself from sibling list tools by specifying the resource type and return fields.

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 when to use it (when you need storage containers), but does not explicitly state when not to use it or provide alternatives. For example, pe_list_containers is a sibling tool that might serve a similar purpose, but no differentiation is given.

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