get_landing_page
Retrieve detailed information about a specific Mailchimp landing page using its unique ID to access page content and configuration data.
Instructions
Get details of a specific landing page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | The landing page ID |
Implementation Reference
- src/tools/index.ts:1027-1036 (handler)Handler logic for the 'get_landing_page' tool within the handleToolCall switch statement. It calls the service method and returns a formatted text response with JSON data.case "get_landing_page": const landingPage = await service.getLandingPage(args.page_id); return { content: [ { type: "text", text: JSON.stringify(landingPage, null, 2), }, ], };
- src/tools/index.ts:412-425 (registration)Tool registration in getToolDefinitions array, including name, description, and input schema.{ name: "get_landing_page", description: "Get details of a specific landing page", inputSchema: { type: "object", properties: { page_id: { type: "string", description: "The landing page ID", }, }, required: ["page_id"], }, },
- src/tools/index.ts:415-424 (schema)Input schema definition for the 'get_landing_page' tool, specifying the required 'page_id' parameter.inputSchema: { type: "object", properties: { page_id: { type: "string", description: "The landing page ID", }, }, required: ["page_id"], },
- src/services/mailchimp.ts:291-293 (helper)Service helper method that makes the API request to fetch landing page details from Mailchimp.async getLandingPage(pageId: string): Promise<MailchimpLandingPage> { return await this.makeRequest(`/landing-pages/${pageId}`); }