Skip to main content
Glama

minio_bucket_exists

Verify whether a specific bucket exists in MinIO or S3-compatible object storage to confirm availability before performing storage operations.

Instructions

Check if a bucket exists in MinIO

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucket_nameYesName of the bucket to check

Implementation Reference

  • The actual implementation of bucket_exists method in MinioClient class that checks if a bucket exists using the MinIO client's bucket_exists method and returns a dictionary with bucket name and existence status.
    def bucket_exists(self, bucket_name: str) -> dict:
        """Check if a bucket exists.
    
        Args:
            bucket_name: Name of the bucket to check
    
        Returns:
            Dictionary with exists status
        """
        exists = self._client.bucket_exists(bucket_name)
        return {"bucket": bucket_name, "exists": exists}
  • Tool registration in the TOOLS list that defines the minio_bucket_exists tool with its name, description, and input schema requiring a bucket_name parameter.
    Tool(
        name="minio_bucket_exists",
        description="Check if a bucket exists in MinIO",
        inputSchema={
            "type": "object",
            "properties": {
                "bucket_name": {
                    "type": "string",
                    "description": "Name of the bucket to check",
                },
            },
            "required": ["bucket_name"],
        },
    ),
  • Handler in the call_tool function that routes minio_bucket_exists tool calls to the MinioClient's bucket_exists method, passing the bucket_name argument.
    elif name == "minio_bucket_exists":
        result = client.bucket_exists(arguments["bucket_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/Raphaelren/minio-mcp'

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