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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:1007-1025 (handler)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 ), }, ], };
- src/tools/index.ts:404-411 (registration)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: [], }, },
- src/services/mailchimp.ts:283-289 (helper)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" ); }