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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"list_id": "<list_id>"
},
"name": "get_list"
}
}Input 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}`); }