get_landing_page
Get details and tracking statistics for a specific landing page by providing the page ID.
Instructions
Get details for a specific landing page including tracking stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp_mailchimp/server.py:1268-1288 (handler)The `get_landing_page` async function is the tool handler. It fetches details for a specific landing page from Mailchimp's /landing-pages/{page_id} endpoint, returning tracking stats (visits, unique visits, subscribes, clicks) and page metadata.
@mcp.tool() async def get_landing_page(page_id: str) -> str: """Get details for a specific landing page including tracking stats.""" mc = get_client() p = await mc.get(f"/landing-pages/{page_id}") t = p.get("tracking", {}) return _fmt({ "id": p.get("id", ""), "name": p.get("name", ""), "title": p.get("title", ""), "status": p.get("status", ""), "url": p.get("url", ""), "list_id": p.get("list_id", ""), "visits": t.get("visits", 0), "unique_visits": t.get("unique_visits", 0), "subscribes": t.get("subscribes", 0), "clicks": t.get("clicks", 0), "published_at": p.get("published_at", ""), "created_at": p.get("created_at", ""), "updated_at": p.get("updated_at", ""), }) - mcp_mailchimp/server.py:1269-1269 (registration)The `@mcp.tool()` decorator on line 1268 registers `get_landing_page` as an MCP tool. No separate schema definition is needed; FastMCP infers the schema from the type-annotated parameters.
async def get_landing_page(page_id: str) -> str: