get_landing_page
Retrieve specific landing page details from Mailchimp by providing the page ID for marketing campaign analysis and management.
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/services/mailchimp.ts:291-293 (handler)Core implementation of the getLandingPage method in MailchimpService, which makes an API request to fetch the specific landing page by ID.async getLandingPage(pageId: string): Promise<MailchimpLandingPage> { return await this.makeRequest(`/landing-pages/${pageId}`); }
- src/tools/index.ts:413-425 (schema)Tool schema definition including name, description, and input schema requiring 'page_id'.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:1027-1036 (handler)Handler case in handleToolCall function that invokes the service method and returns formatted JSON response.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:400-540 (registration)Part of the tools array registration where the tool schema is defined and exported for MCP.}, }, // Landing Pages { name: "list_landing_pages", description: "List all landing pages", inputSchema: { type: "object", properties: {}, required: [], }, }, { 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"], }, }, // E-commerce Stores { name: "list_stores", description: "List all e-commerce stores", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "get_store", description: "Get details of a specific store", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, }, required: ["store_id"], }, }, // E-commerce Products { name: "list_products", description: "List all products in a store", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, }, required: ["store_id"], }, }, { name: "get_product", description: "Get details of a specific product", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, product_id: { type: "string", description: "The product ID", }, }, required: ["store_id", "product_id"], }, }, // E-commerce Orders { name: "list_orders", description: "List all orders in a store", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, }, required: ["store_id"], }, }, { name: "get_order", description: "Get details of a specific order", inputSchema: { type: "object", properties: { store_id: { type: "string", description: "The store ID", }, order_id: { type: "string", description: "The order ID", }, }, required: ["store_id", "order_id"], }, }, // Conversations { name: "list_conversations", description: "List all conversations", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "get_conversation", description: "Get details of a specific conversation", inputSchema: { type: "object", properties: { conversation_id: { type: "string", description: "The conversation ID", }, }, required: ["conversation_id"], }, }, ];