Skip to main content
Glama

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
NameRequiredDescriptionDefault
campaign_idYes

Implementation Reference

  • 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.",
        })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AlexlaGuardia/mcp-mailchimp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server