get_image
Retrieve detailed information about a specific disk image including size, type, source, and cluster placement by providing its UUID.
Instructions
Get detailed information about a specific disk image by UUID. Returns size, type, source, and cluster placement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_uuid | Yes | The UUID (extId) of the image |
Implementation Reference
- The `handle_get_image` async function that executes the get_image tool logic. It takes a NutanixClient and arguments dict, extracts `image_uuid`, calls `client.v4_get(namespace='vmm', path=f'content/images/{image_uuid}')`, and returns the result data.
async def handle_get_image( client: NutanixClient, arguments: dict[str, Any] ) -> dict[str, Any]: """Get image details using v4 vmm API.""" image_uuid = arguments["image_uuid"] result = await client.v4_get( namespace="vmm", path=f"content/images/{image_uuid}", ) return result.get("data", result) - Input schema definition for the get_image tool. Defines the `image_uuid` string parameter as required, with description explaining its purpose.
{ "name": "get_image", "description": ( "Get detailed information about a specific disk image by UUID. " "Returns size, type, source, and cluster placement." ), "inputSchema": { "type": "object", "properties": { "image_uuid": { "type": "string", "description": "The UUID (extId) of the image", }, }, "required": ["image_uuid"], }, - src/nutanix_mcp/tools/networking.py:292-299 (registration)The `NETWORKING_HANDLERS` dispatch table mapping the string 'get_image' to the `handle_get_image` function, used by the server's call_tool handler.
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, } - src/nutanix_mcp/tools/__init__.py:10-12 (registration)The `get_all_tools()` function that aggregates tool definitions including NETWORKING_TOOLS (which contains the get_image definition).
def get_all_tools() -> list[dict]: """Return all registered tool definitions.""" return VM_TOOLS + CLUSTER_TOOLS + PE_TOOLS + REPORT_TOOLS + NETWORKING_TOOLS - src/nutanix_mcp/server.py:34-41 (registration)The `ALL_HANDLERS` dictionary in server.py that merges all handler dispatch tables, including NETWORKING_HANDLERS which contains the get_image handler.
# Merge all handler dispatch tables ALL_HANDLERS: dict[str, Any] = { **VM_HANDLERS, **CLUSTER_HANDLERS, **PE_HANDLERS, **REPORT_HANDLERS, **NETWORKING_HANDLERS, }