Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

list_landing_pages

Retrieve all landing pages from your Mailchimp account to manage and analyze your email marketing campaigns.

Instructions

List all landing pages

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the tool by calling the Mailchimp service's listLandingPages method and formatting the landing pages list into a JSON string response.
    case "list_landing_pages": const landingPages = await service.listLandingPages(); return { content: [ { type: "text", text: JSON.stringify( landingPages.landing_pages.map((lp) => ({ id: lp.id, name: lp.name, type: lp.type, created_at: lp.created_at, })), null, 2 ), }, ], };
  • Tool schema definition with name, description, and empty input schema (no parameters required).
    name: "list_landing_pages", description: "List all landing pages", inputSchema: { type: "object", properties: {}, required: [], }, },
  • src/index.ts:42-46 (registration)
    Registers the tool list (including list_landing_pages) with the MCP server via getToolDefinitions.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: getToolDefinitions(mailchimpService), }; });
  • Service helper method that makes a paginated API request to Mailchimp's /landing-pages endpoint to fetch the list of landing pages.
    async listLandingPages(): Promise<{ landing_pages: MailchimpLandingPage[] }> { return await this.makePaginatedRequest( "/landing-pages", "created_at", "DESC" ); }

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