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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:1039-1057 (handler)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 ), }, ], };
- src/tools/index.ts:427-435 (schema)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: [], }, },
- src/services/mailchimp.ts:296-302 (helper)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" ); }