list_lists
Retrieve all email lists from your Mailchimp account to manage automation recipients and audience segmentation.
Instructions
List all lists in your Mailchimp account (for automation recipients)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/services/mailchimp.ts:155-156 (handler)Core handler function that executes the tool logic by making a paginated API request to Mailchimp's /lists endpoint.async listLists(): Promise<{ lists: MailchimpList[] }> { return await this.makePaginatedRequest("/lists", "date_created", "DESC");
- src/tools/index.ts:651-669 (handler)Tool dispatch handler in handleToolCall function that invokes the service.listLists method and formats the response as MCP content.case "list_lists": const lists = await service.listLists(); return { content: [ { type: "text", text: JSON.stringify( lists.lists.map((l) => ({ id: l.id, name: l.name, member_count: l.stats.member_count, date_created: l.date_created, })), null, 2 ), }, ], };
- src/tools/index.ts:96-104 (registration)Tool registration entry defining the name, description, and input schema (no inputs required).name: "list_lists", description: "List all lists in your Mailchimp account (for automation recipients)", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/tools/index.ts:100-104 (schema)Input schema definition (empty object, no required parameters).type: "object", properties: {}, required: [], }, },