s3_bucket_create
Create a new Amazon S3 bucket for storing objects and files in AWS cloud storage.
Instructions
Create a new S3 bucket
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucket_name": "<bucket_name>"
},
"name": "s3_bucket_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | Name of the S3 bucket to create |
Implementation Reference
- src/mcp_server_aws/server.py:146-150 (handler)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' }) - src/mcp_server_aws/tools.py:6-19 (schema)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"] } ), - src/mcp_server_aws/server.py:136-140 (registration)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()