Skip to main content
Glama
dazanza
by dazanza

get_campaign

Retrieve detailed information about a specific Mailchimp email campaign using its unique ID to analyze performance, content, and settings.

Instructions

Get details of a specific campaign by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesThe campaign ID

Implementation Reference

  • The implementation of the 'get_campaign' tool, which takes a campaign_id and retrieves campaign details from the Mailchimp API.
    // --- Tool 4: Get Campaign ---
    server.tool(
      "get_campaign",
      "Get details of a specific campaign by ID.",
      {
        campaign_id: z.string().describe("The campaign ID"),
      },
      async ({ campaign_id }) => {
        const c = await mailchimp.campaigns.get(campaign_id);
        return { content: [{ type: "text", text: JSON.stringify(c, null, 2) }] };
      }
    );

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/dazanza/mailchimp-mcp'

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