Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_conversation

Retrieve specific conversation details from Mailchimp to access email marketing interactions and customer communications.

Instructions

Get details of a specific conversation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conversation_idYesThe conversation ID

Implementation Reference

  • The MCP tool handler for 'get_conversation'. It calls the MailchimpService.getConversation method with the provided conversation_id and formats the response as MCP tool content with JSON stringified data.
    case "get_conversation": const conversation = await service.getConversation(args.conversation_id); return { content: [ { type: "text", text: JSON.stringify(conversation, null, 2), }, ], };
  • Input schema definition for the 'get_conversation' tool, specifying an object with required 'conversation_id' string property.
    name: "get_conversation", description: "Get details of a specific conversation", inputSchema: { type: "object", properties: { conversation_id: { type: "string", description: "The conversation ID", }, }, required: ["conversation_id"], }, },
  • src/index.ts:42-46 (registration)
    MCP server registration for listing tools, which includes the 'get_conversation' tool via getToolDefinitions.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: getToolDefinitions(mailchimpService), }; });
  • MailchimpService helper method that performs the API GET request to retrieve conversation details by ID.
    async getConversation( conversationId: string ): Promise<MailchimpConversation> { return await this.makeRequest(`/conversations/${conversationId}`); }
  • TypeScript interface defining the structure of a Mailchimp conversation (output type for the tool).
    export interface MailchimpConversation { id: string; message_id: string; list_id: string; from_email: string; from_label: string; subject: string; message: string; read: boolean; timestamp: string; _links?: Array<{ rel: string; href: string; method: string; targetSchema?: string; schema?: string; }>; }

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