Skip to main content
Glama

list_buckets

Retrieve available storage buckets from Huawei OBS, including names, creation dates, and locations, for managing cloud object storage resources.

Instructions

List all storage buckets available in the 'huawei_obs' source. Returns bucket names, creation dates, and locations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async handler function for the list_buckets tool, which currently returns a placeholder response indicating implementation is pending. Uses closure variables sourceId and storage.endpoint from the registration loop.
    async () => { // TODO: Implement actual bucket listing with storage provider return createToolSuccessResponse({ message: `Bucket listing from '${sourceId}' not yet implemented`, source_id: sourceId, endpoint: storage.endpoint, note: "Storage provider integration pending", }); }
  • src/server.ts:166-179 (registration)
    Registration of the list_buckets tool using McpServer.tool(), dynamically suffixed per storage source. Includes description, empty Zod input schema, and inline handler.
    server.tool( `list_buckets${toolSuffix}`, `List all storage buckets available in the '${sourceId}' source. Returns bucket names, creation dates, and locations.`, {}, async () => { // TODO: Implement actual bucket listing with storage provider return createToolSuccessResponse({ message: `Bucket listing from '${sourceId}' not yet implemented`, source_id: sourceId, endpoint: storage.endpoint, note: "Storage provider integration pending", }); } );
  • TypeScript interface defining ListBucketsToolConfig for configuration of list_buckets tool in TOML files (though built-in tools are hardcoded).
    * Built-in storage tool configuration for list_buckets */ export interface ListBucketsToolConfig { name: "list_buckets"; source: string; }
  • Constant array of built-in storage tool names, including "list_buckets", used for validation and checks.
    export const BUILTIN_STORAGE_TOOLS = [ "list_buckets", "list_objects", "get_object", "get_object_metadata", "search_objects", ] as const;
  • src/server.ts:288-288 (registration)
    Console log confirming successful registration of the list_buckets tool.
    console.error(` - list_buckets${toolSuffix} registered`);

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/zq940222/hybrid-mcp'

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