replicate_campaign
Create a copy of an existing Mailchimp campaign to reuse content and settings for new marketing initiatives.
Instructions
Create a copy of an existing campaign. Returns the new campaign ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes |
Implementation Reference
- mcp_mailchimp/server.py:221-230 (handler)The `replicate_campaign` tool handler is defined in `mcp_mailchimp/server.py` as an asynchronous function decorated with `@mcp.tool()`. It uses the `MailchimpClient` to send a POST request to the Mailchimp API to duplicate a campaign.
async def replicate_campaign(campaign_id: str) -> str: """Create a copy of an existing campaign. Returns the new campaign ID.""" mc = get_client() c = await mc.post(f"/campaigns/{campaign_id}/actions/replicate") return _fmt({ "new_campaign_id": c["id"], "original_campaign_id": campaign_id, "status": c.get("status", ""), "message": "Campaign replicated.", })