Skip to main content
Glama
jkmills

Nutanix MCP Server

by jkmills

get_subnet

Retrieve detailed subnet configuration including IP pools, DHCP settings, and virtual switch assignment for a specified subnet UUID.

Instructions

Get detailed subnet configuration including IP pools, DHCP config, and virtual switch assignment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
subnet_uuidYesThe UUID (extId) of the subnet

Implementation Reference

  • Input schema for the get_subnet tool: requires a subnet_uuid string parameter.
    {
        "name": "get_subnet",
        "description": (
            "Get detailed subnet configuration including IP pools, DHCP config, "
            "and virtual switch assignment."
        ),
        "inputSchema": {
            "type": "object",
            "properties": {
                "subnet_uuid": {
                    "type": "string",
                    "description": "The UUID (extId) of the subnet",
                },
            },
            "required": ["subnet_uuid"],
        },
    },
  • Handler function that calls the Nutanix v4 networking API to fetch subnet details by UUID.
    async def handle_get_subnet(
        client: NutanixClient, arguments: dict[str, Any]
    ) -> dict[str, Any]:
        """Get subnet details using v4 networking API."""
        subnet_uuid = arguments["subnet_uuid"]
        result = await client.v4_get(
            namespace="networking",
            path=f"config/subnets/{subnet_uuid}",
        )
        return result.get("data", result)
  • Registration of handle_get_subnet in the NETWORKING_HANDLERS dispatch table.
    NETWORKING_HANDLERS: dict[str, Any] = {
        "list_subnets": handle_list_subnets,
        "get_subnet": handle_get_subnet,
        "list_images": handle_list_images,
        "get_image": handle_get_image,
        "list_categories": handle_list_categories,
        "get_category": handle_get_category,
    }
  • Aggregation of all tool definitions including get_subnet (from NETWORKING_TOOLS) into a single list for MCP registration.
    def get_all_tools() -> list[dict]:
        """Return all registered tool definitions."""
        return VM_TOOLS + CLUSTER_TOOLS + PE_TOOLS + REPORT_TOOLS + NETWORKING_TOOLS
  • Merging NETWORKING_HANDLERS into ALL_HANDLERS, which is used by the call_tool handler to dispatch tool requests.
    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 provided. Description implies a read operation but does not disclose any behavioral traits (e.g., non-destructive, required permissions). Adequate for a simple getter but could be more explicit.

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?

Single sentence, front-loaded with purpose, concise and to the point.

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?

For a simple getter with one parameter and no output schema, the description adequately explains what is retrieved. Lacks mention of related tools or error conditions, but sufficient for basic use.

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 provides full coverage for the single parameter. Description adds no extra semantics to the parameter beyond what the schema already offers.

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?

Description clearly states 'Get detailed subnet configuration' and lists specific components (IP pools, DHCP config, virtual switch assignment). It distinguishes itself from sibling tools like get_vm or list_subnets.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like list_subnets (which likely returns all subnets). No when-not or context provided.

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