get_folder
Retrieve specific folder details from Mailchimp's email marketing platform to access organized content and campaign data.
Instructions
Get details of a specific folder
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | The folder ID |
Implementation Reference
- src/tools/index.ts:926-935 (handler)Handler for the 'get_folder' tool. Extracts folder_id from args, calls MailchimpService.getFolder, and formats the response as MCP content with JSON string.case "get_folder": const folder = await service.getFolder(args.folder_id); return { content: [ { type: "text", text: JSON.stringify(folder, null, 2), }, ], };
- src/tools/index.ts:331-344 (registration)Tool registration in getToolDefinitions array, including name, description, and input schema for 'get_folder'.{ name: "get_folder", description: "Get details of a specific folder", inputSchema: { type: "object", properties: { folder_id: { type: "string", description: "The folder ID", }, }, required: ["folder_id"], }, },
- src/tools/index.ts:334-343 (schema)Input schema for validating 'get_folder' tool arguments: requires folder_id as string.inputSchema: { type: "object", properties: { folder_id: { type: "string", description: "The folder ID", }, }, required: ["folder_id"], },
- src/services/mailchimp.ts:265-267 (helper)Supporting service method getFolder in MailchimpService that performs the actual API call to retrieve folder details from Mailchimp.async getFolder(folderId: string): Promise<MailchimpFolder> { return await this.makeRequest(`/campaign-folders/${folderId}`); }