get_list
Retrieve detailed information about a specific Mailchimp email list using its unique list ID to access audience data and configuration.
Instructions
Get details of a specific list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | The list ID |
Implementation Reference
- src/tools/index.ts:105-118 (registration)Registers the 'get_list' tool with its name, description, and input schema requiring a list_id.{ name: "get_list", description: "Get details of a specific list", inputSchema: { type: "object", properties: { list_id: { type: "string", description: "The list ID", }, }, required: ["list_id"], }, },
- src/tools/index.ts:671-680 (handler)Tool handler for 'get_list': calls MailchimpService.getList with list_id argument and returns the result as formatted JSON text content.case "get_list": const list = await service.getList(args.list_id); return { content: [ { type: "text", text: JSON.stringify(list, null, 2), }, ], };
- src/services/mailchimp.ts:159-161 (handler)Core implementation of the getList method in MailchimpService, which makes an authenticated API request to the Mailchimp /lists/{listId} endpoint.async getList(listId: string): Promise<MailchimpList> { return await this.makeRequest(`/lists/${listId}`); }