Skip to main content
Glama
KonMam

s3-mcp

by KonMam

list_buckets

Retrieve all AWS S3 buckets in your account. This tool returns a JSON-formatted list of available storage containers for managing cloud data.

Instructions

Lists all buckets in the AWS account.

Returns: str: JSON formatted list of buckets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_buckets' tool. It is registered via the @mcp.tool() decorator, calls the core logic helper, and formats the response as JSON.
    @mcp.tool() def list_buckets() -> str: """Lists all buckets in the AWS account. Returns: str: JSON formatted list of buckets. """ result = _list_buckets_logic()
  • Supporting helper function that executes the core S3 API call to list buckets using the boto3 client.
    def _list_buckets_logic() -> Dict[str, Any]: """Core logic to list S3 buckets. Returns: Dict[str, Any]: Raw boto3 response from list_buckets. """ client = get_s3_client() return client.list_buckets()

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/KonMam/s3-mcp'

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