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"],
                },
            ),
        ]
Behavior2/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 of behavioral disclosure. It states the action is 'Delete,' implying a destructive mutation, but fails to disclose critical traits: whether deletion is permanent, if it requires specific permissions, what happens to contained blobs, or error conditions (e.g., non-empty containers). This leaves significant gaps in understanding the tool's behavior.

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 a single, direct sentence with zero wasted words, making it highly concise and front-loaded. It immediately conveys the core action without unnecessary elaboration, which is efficient for a simple tool. Every word earns its place by stating the essential purpose clearly.

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

Completeness2/5

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

Given the tool's destructive nature and lack of annotations or output schema, the description is incomplete. It doesn't address key contextual aspects: the irreversible impact, prerequisites (e.g., empty container), error handling, or what the response contains. For a deletion tool with no structured safety hints, more detail is needed to ensure safe and correct usage.

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 description coverage is 100%, with the parameter 'container_name' fully documented in the schema. The description adds no additional meaning beyond what the schema provides, such as format constraints or examples. Since the schema handles the parameter documentation adequately, the baseline score of 3 is appropriate, though no extra value is contributed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Delete') and the resource ('a Blob Storage container'), making the purpose immediately understandable. It distinguishes from siblings like blob_container_create and blob_container_list by specifying deletion rather than creation or listing. However, it doesn't explicitly mention that this is irreversible or that it deletes all blobs within, which would make it more specific.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., container must be empty or require force deletion), compare to blob_delete for individual blob removal, or warn about irreversible consequences. Without such context, users might misuse it without understanding the implications.

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

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