Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

list_stores

Retrieve all e-commerce stores from your Mailchimp account to manage and analyze your connected online sales platforms.

Instructions

List all e-commerce stores

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'list_stores' tool in handleToolCall function. Calls service.listStores() and returns formatted JSON response with store details.
    case "list_stores": const stores = await service.listStores(); return { content: [ { type: "text", text: JSON.stringify( stores.stores.map((s) => ({ id: s.id, name: s.name, domain: s.domain, created_at: s.created_at, })), null, 2 ), }, ], };
  • Tool definition including name, description, and input schema (no parameters required). Part of getToolDefinitions array used for tool registration.
    { name: "list_stores", description: "List all e-commerce stores", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Core implementation of listStores in MailchimpService. Makes paginated API request to Mailchimp's /ecommerce/stores endpoint.
    async listStores(): Promise<{ stores: MailchimpStore[] }> { return await this.makePaginatedRequest( "/ecommerce/stores", "created_at", "DESC" ); }

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/AgentX-ai/mailchimp-mcp'

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