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

  • The handler logic for the 'list_landing_pages' tool call within the handleToolCall switch statement. It invokes the MailchimpService.listLandingPages() method and formats the landing pages data 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 ), }, ], };
  • The tool registration definition in getToolDefinitions(), including the tool name, description, and empty input schema (no parameters required).
    name: "list_landing_pages", description: "List all landing pages", inputSchema: { type: "object", properties: {}, required: [], }, },
  • The supporting service method in MailchimpService that fetches the list of landing pages from the Mailchimp API using a paginated request to the '/landing-pages' endpoint.
    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