Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

get_conversation

Retrieve specific conversation details from Mailchimp's Marketing API to analyze customer interactions and email campaign responses.

Instructions

Get details of a specific conversation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conversation_idYesThe conversation ID

Implementation Reference

  • Core handler function that executes the tool logic by making an API request to Mailchimp's conversations endpoint.
    async getConversation( conversationId: string ): Promise<MailchimpConversation> { return await this.makeRequest(`/conversations/${conversationId}`); }
  • Registers the 'get_conversation' tool in the tool definitions array, including name, description, and input schema.
    { 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"], }, },
  • Defines the input schema for the 'get_conversation' tool, specifying the required 'conversation_id' parameter.
    inputSchema: { type: "object", properties: { conversation_id: { type: "string", description: "The conversation ID", }, }, required: ["conversation_id"], },
  • Tool dispatch handler in handleToolCall that invokes the service method and returns the conversation data as JSON text content.
    case "get_conversation": const conversation = await service.getConversation(args.conversation_id); return { content: [ { type: "text", text: JSON.stringify(conversation, null, 2), }, ], };

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