list_conversations
Retrieve all conversations from your Mailchimp account to monitor customer interactions and manage email marketing communications.
Instructions
List all conversations
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:1135-1153 (handler)Handler function for the 'list_conversations' tool. Calls the service method and formats the response as a text content block with JSON stringified list of conversations.case "list_conversations": const conversations = await service.listConversations(); return { content: [ { type: "text", text: JSON.stringify( conversations.conversations.map((c) => ({ id: c.id, subject: c.subject, from_email: c.from_email, timestamp: c.timestamp, })), null, 2 ), }, ], };
- src/tools/index.ts:517-525 (schema)Tool definition including name, description, and input schema (empty object, no parameters required). This is part of the getToolDefinitions array used for tool registration.{ name: "list_conversations", description: "List all conversations", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/services/mailchimp.ts:344-352 (helper)Core service method that implements the API call to list conversations from Mailchimp using a paginated GET request to the '/conversations' endpoint.async listConversations(): Promise<{ conversations: MailchimpConversation[]; }> { return await this.makePaginatedRequest( "/conversations", "timestamp", "DESC" ); }