Skip to main content
Glama

s3_bucket_create

Create a new Amazon S3 bucket for storing objects and files in AWS cloud storage.

Instructions

Create a new S3 bucket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucket_nameYesName of the S3 bucket to create

Implementation Reference

  • Executes the S3 bucket creation using boto3 S3 client with the provided bucket name and region from environment.
    if name == "s3_bucket_create":
        response = s3_client.create_bucket(Bucket=arguments["bucket_name"],
                                           CreateBucketConfiguration={
                                               'LocationConstraint': os.getenv("AWS_REGION") or 'us-east-1'
                                           })
  • Defines the tool schema including name, description, and input schema requiring 'bucket_name'.
    Tool(
        name="s3_bucket_create",
        description="Create a new S3 bucket",
        inputSchema={
            "type": "object",
            "properties": {
                "bucket_name": {
                    "type": "string",
                    "description": "Name of the S3 bucket to create"
                }
            },
            "required": ["bucket_name"]
        }
    ),
  • Registers the list_tools handler which returns all AWS tools including s3_bucket_create via get_aws_tools().
    async def list_tools() -> list[Tool]:
        """List available AWS tools"""
        logger.debug("Handling list_tools request")
        return get_aws_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/rishikavikondala/mcp-server-aws'

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