Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 ), }, ], };
  • 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: [], }, },
  • 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" ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentX-ai/mailchimp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server