s3_bucket_list
List all S3 buckets in your AWS account to manage storage, monitor resources, and organize cloud data.
Instructions
List all S3 buckets
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "s3_bucket_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_server_aws/server.py:151-152 (handler)Executes the s3_bucket_list tool by calling list_buckets() on the boto3 S3 client to list all S3 buckets.
elif name == "s3_bucket_list": response = s3_client.list_buckets() - src/mcp_server_aws/tools.py:20-27 (schema)Defines the Tool object for s3_bucket_list, including name, description, and input schema (no required properties).
Tool( name="s3_bucket_list", description="List all S3 buckets", inputSchema={ "type": "object", "properties": {} } ), - src/mcp_server_aws/server.py:135-140 (registration)Registers the list_tools handler which returns all AWS tools, including s3_bucket_list via get_aws_tools().
@server.list_tools() async def list_tools() -> list[Tool]: """List available AWS tools""" logger.debug("Handling list_tools request") return get_aws_tools() - src/mcp_server_aws/server.py:356-359 (registration)Dispatches s3_bucket_list calls to the handle_s3_operations function in the main call_tool handler.
try: if name.startswith("s3_"): return await handle_s3_operations(aws, name, arguments) elif name.startswith("dynamodb_"):