Skip to main content
Glama

s3_bucket_create

Create a new Amazon S3 bucket by specifying a unique name. This tool enables users to manage AWS storage resources programmatically through natural language commands on the AWS MCP Server.

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_create tool by invoking the boto3 S3 client's create_bucket method with the provided bucket name and region location constraint.
    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 object for s3_bucket_create, including its input schema requiring a 'bucket_name' string.
    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 all AWS tools, including s3_bucket_create, by returning the list from get_aws_tools() in response to list_tools requests.
    @server.list_tools() async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools()
  • Combines and returns S3 and DynamoDB tools for registration, including s3_bucket_create via get_s3_tools().
    def get_aws_tools() -> list[Tool]: return [ *get_s3_tools(), *get_dynamodb_tools() ]
  • Returns the list of S3 tools starting with the s3_bucket_create Tool definition for server registration.
    def get_s3_tools() -> list[Tool]: return [ 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"] } ), Tool(

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