Skip to main content
Glama

blob_container_delete

Delete a Blob Storage container in Azure to remove storage resources and manage container lifecycle.

Instructions

Delete a Blob Storage container

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_nameYesName of the Blob Storage container to delete

Implementation Reference

  • Handler logic that deletes the specified Blob Storage container using BlobServiceClient.delete_container() and returns a success response.
    elif name == "blob_container_delete":
        blob_service_client.delete_container(arguments["container_name"])
        response = {"container_name": arguments["container_name"], "deleted": True}
  • Tool schema definition specifying the inputSchema with required 'container_name' parameter for the blob_container_delete tool.
    Tool(
        name="blob_container_delete",
        description="Delete a Blob Storage container",
        inputSchema={
            "type": "object",
            "properties": {
                "container_name": {
                    "type": "string",
                    "description": "Name of the Blob Storage container to delete",
                }
            },
            "required": ["container_name"],
        },
  • Registers all Azure tools, including blob_container_delete, by returning get_azure_tools() in response to list_tools requests.
    @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
  • Function that returns the list of Blob Storage tools including the blob_container_delete Tool instance.
    def get_blob_storage_tools() -> list[Tool]:
        return [
            Tool(
                name="blob_container_create",
                description="Create a new Blob Storage container",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "container_name": {
                            "type": "string",
                            "description": "Name of the Blob Storage container to create",
                        }
                    },
                    "required": ["container_name"],
                },
            ),
            Tool(
                name="blob_container_list",
                description="List all Blob Storage containers",
                inputSchema={"type": "object", "properties": {}},
            ),
            Tool(
                name="blob_container_delete",
                description="Delete a Blob Storage container",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "container_name": {
                            "type": "string",
                            "description": "Name of the Blob Storage container to delete",
                        }
                    },
                    "required": ["container_name"],
                },
            ),
            Tool(
                name="blob_upload",
                description="Upload a blob to Blob Storage",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "container_name": {
                            "type": "string",
                            "description": "Name of the Blob Storage container",
                        },
                        "blob_name": {
                            "type": "string",
                            "description": "Name of the blob in the container",
                        },
                        "file_content": {
                            "type": "string",
                            "description": "Base64 encoded file content for upload",
                        },
                    },
                    "required": ["container_name", "blob_name", "file_content"],
                },
            ),
            Tool(
                name="blob_delete",
                description="Delete a blob from Blob Storage",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "container_name": {
                            "type": "string",
                            "description": "Name of the Blob Storage container",
                        },
                        "blob_name": {
                            "type": "string",
                            "description": "Name of the blob to delete",
                        },
                    },
                    "required": ["container_name", "blob_name"],
                },
            ),
            Tool(
                name="blob_list",
                description="List blobs in a Blob Storage container",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "container_name": {
                            "type": "string",
                            "description": "Name of the Blob Storage container",
                        }
                    },
                    "required": ["container_name"],
                },
            ),
            Tool(
                name="blob_read",
                description="Read a blob's content from Blob Storage",
                inputSchema={
                    "type": "object",
                    "properties": {
                        "container_name": {
                            "type": "string",
                            "description": "Name of the Blob Storage container",
                        },
                        "blob_name": {
                            "type": "string",
                            "description": "Name of the blob to read",
                        },
                    },
                    "required": ["container_name", "blob_name"],
                },
            ),
        ]

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/mashriram/azure_mcp_server'

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