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
| Name | Required | Description | Default |
|---|---|---|---|
| conversation_id | Yes | The conversation ID |
Implementation Reference
- src/services/mailchimp.ts:354-358 (handler)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}`); }
- src/tools/index.ts:526-539 (registration)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"], }, },
- src/tools/index.ts:529-538 (schema)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"], },
- src/tools/index.ts:1155-1164 (handler)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), }, ], };