Skip to main content
Glama

s3_list_buckets

List all available S3 buckets in your storage service to manage and access your cloud storage containers.

Instructions

List all S3 buckets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 's3_list_buckets' tool. Executes ListBucketsCommand via s3Client and returns JSON stringified list of buckets.
    case "s3_list_buckets": {
      const command = new ListBucketsCommand({});
      const response = await s3Client.send(command);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response.Buckets || [], null, 2),
          },
        ],
      };
    }
  • src/index.ts:64-70 (registration)
    Tool registration in ListToolsRequestHandler response, defining name, description, and input schema (empty object).
      name: "s3_list_buckets",
      description: "List all S3 buckets",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Input schema definition for 's3_list_buckets' tool: empty object (no parameters required).
    inputSchema: {
      type: "object",
      properties: {},
    },
  • S3Client instance configuration, used by the handler to send ListBucketsCommand.
    const s3Client = new S3Client({
      region: S3_REGION,
      endpoint: S3_ENDPOINT,
      credentials: {
        accessKeyId: S3_ACCESS_KEY_ID,
        secretAccessKey: S3_SECRET_ACCESS_KEY,
      },
    });

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

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