Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

list_folders

Retrieve all campaign folders from your Mailchimp account to organize and manage email marketing content.

Instructions

List all campaign folders

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'list_folders' tool call. Delegates to MailchimpService.listFolders() and returns formatted JSON response containing folder IDs, names, and counts.
    case "list_folders": const folders = await service.listFolders(); return { content: [ { type: "text", text: JSON.stringify( folders.folders.map((f) => ({ id: f.id, name: f.name, count: f.count, })), null, 2 ), }, ], };
  • Input schema for the 'list_folders' tool, which takes no parameters.
    inputSchema: { type: "object", properties: {}, required: [], },
  • Tool registration/definition in getToolDefinitions array, including name, description, and input schema.
    { name: "list_folders", description: "List all campaign folders", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Core helper method in MailchimpService that fetches campaign folders from the Mailchimp API using paginated request to /campaign-folders endpoint.
    async listFolders(): Promise<{ folders: MailchimpFolder[] }> { return await this.makePaginatedRequest("/campaign-folders", "name", "ASC"); }

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