Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

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
NameRequiredDescriptionDefault
folder_idYesThe folder ID

Implementation Reference

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

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