Skip to main content
Glama

blob_list

List all blobs in an Azure Blob Storage container to view stored files and manage storage content.

Instructions

List blobs in a Blob Storage container

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_nameYesName of the Blob Storage container

Implementation Reference

  • The core handler logic for the 'blob_list' tool. It gets the container client for the given container_name, lists the blobs, extracts their names, and prepares the response dictionary.
    elif name == "blob_list":
        container_client = blob_service_client.get_container_client(
            arguments["container_name"]
        )
        blob_list = container_client.list_blobs()
        blob_names = [blob.name for blob in blob_list]
        response = {"blob_names": blob_names}
  • The Tool definition providing the schema (inputSchema) and metadata for the 'blob_list' tool, used for registration and validation.
    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"],
        },
    ),
  • Server registration of tools via the list_tools handler, which returns get_azure_tools() including the blob_list tool.
    async def list_tools() -> list[Tool]:
        """List available Azure tools"""
        logger.debug("Handling list_tools request")
        return get_azure_tools()  # Use get_azure_tools
  • Aggregator function that includes get_blob_storage_tools() which defines the blob_list tool.
    def get_azure_tools() -> list[Tool]:
        return [
            *get_blob_storage_tools(), 
            *get_cosmosdb_tools(),
            *get_app_configuration_tools()
        ]
  • Function defining and returning the list of blob storage tools, including the blob_list 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?

With no annotations provided, the description carries full burden for behavioral disclosure. It states it's a list operation but doesn't cover important aspects like whether it's paginated, what format the output takes (e.g., list of blob names vs. metadata), authentication requirements, rate limits, or error conditions. This leaves significant gaps for an agent to understand how to use it effectively.

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 that efficiently conveys the core purpose without any unnecessary words. It's appropriately sized for a simple list operation and front-loads the essential information, making it easy for an agent to parse quickly.

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 lack of annotations and output schema, the description is incomplete for a tool that likely returns structured data. It doesn't explain what the output contains (e.g., blob names, sizes, metadata) or handle complexities like pagination or error cases, which are crucial for an agent to use the tool correctly in a storage context.

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?

The schema description coverage is 100%, with the single parameter 'container_name' clearly documented in the schema. The description doesn't add any additional parameter semantics beyond what the schema already provides, such as format constraints or examples of valid container names, which keeps it at the baseline score.

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 ('List') and resource ('blobs in a Blob Storage container'), making the tool's purpose immediately understandable. However, it doesn't differentiate from the sibling 'blob_container_list' tool, which lists containers rather than blobs within a container, missing an opportunity for clearer sibling distinction.

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. There's no mention of prerequisites (e.g., needing an existing container), comparison to similar tools like 'blob_read' for individual blobs, or exclusions for when other tools might be more appropriate.

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