blob_container_list
Lists all Blob Storage containers in Azure to manage storage resources and audit container inventory.
Instructions
List all Blob Storage containers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_server_azure/azure_server.py:192-195 (handler)Core handler logic for the 'blob_container_list' tool: retrieves all blob containers using BlobServiceClient.list_containers() and extracts their names into a response dictionary.elif name == "blob_container_list": containers = blob_service_client.list_containers() container_names = [container.name for container in containers] response = {"container_names": container_names}
- Pydantic schema definition for the 'blob_container_list' tool, specifying no required input parameters.Tool( name="blob_container_list", description="List all Blob Storage containers", inputSchema={"type": "object", "properties": {}}, ),
- mcp_server_azure/azure_server.py:171-176 (registration)Tool registration via the list_tools handler, which returns get_azure_tools() including 'blob_container_list'.@server.list_tools() async def list_tools() -> list[Tool]: """List available Azure tools""" logger.debug("Handling list_tools request") return get_azure_tools() # Use get_azure_tools
- mcp_server_azure/azure_server.py:432-435 (registration)Dispatch logic in call_tool handler that routes 'blob_container_list' (blob_ prefixed tools) to the blob storage operations handler.if name.startswith("blob_"): # Updated prefix to blob_ return await handle_blob_storage_operations( azure_rm, name, arguments ) # Use blob handler