Skip to main content
Glama

blob_delete

Remove specific files from Azure Blob Storage containers to manage storage space and maintain data organization.

Instructions

Delete a blob from Blob Storage

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_nameYesName of the Blob Storage container
blob_nameYesName of the blob to delete

Implementation Reference

  • The core handler logic for the 'blob_delete' tool. It retrieves the blob client using the provided container and blob names, deletes the blob, and prepares a success response.
    elif name == "blob_delete":
        blob_client = blob_service_client.get_blob_client(
            container=arguments["container_name"], blob=arguments["blob_name"]
        )
        blob_client.delete_blob()
        response = {"blob_name": arguments["blob_name"], "deleted": True}
  • Defines the Tool object for 'blob_delete' with input schema specifying required container_name and blob_name parameters.
    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"],
        },
    ),
  • MCP server registration of tools via @server.list_tools(), which includes 'blob_delete' from get_azure_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

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