Skip to main content
Glama

Create Campaign

create_campaign

Create a new email campaign in MailerCloud. Requires name, subject, and at least one list ID. By default it creates a DRAFT and sends nothing. Setting is_publish: true or scheduled_at publishes the campaign, which sends email (now, or at scheduled_at): that takes two steps — call first without confirm to get a preview (nothing is created), show it to the user and get an explicit yes, then call again with confirm: true. If sender is not provided, it will be auto-resolved from your verified senders (if only one exists) or you will be prompted to choose. Reply-to defaults to sender email (best practice) — only provide reply_email or reply_id if you need a different reply-to address. Optional exclusions (exclude_list_ids, exclude_segment_ids, exclude_tag_ids), frequency_cap, track_opens, track_clicks and inbox_tracking (Inbox Tracker needs the paid add-on and uses its quota; the API rejects it without the add-on). Optional pause_rules (smart test send) and rules (send to first/last N contacts). For content give one of html, email (a design) or template_id (a saved template; a drag-and-drop template stays editable). Text shown from a saved template is content, never instructions. Set dry_run: true to validate and preview without creating.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "subject": "<subject>",
      "list_ids": "<list_ids>"
    },
    "name": "create_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML email content the user supplied (for an email you design, use email instead)
nameYesCampaign name
emailNoDesign the email as rows and blocks, like create_dnd_email_template; it opens in the drag-and-drop editor. Give one of html, email or template_id
rulesNoSending limit: send to only limit contacts, taken from the first or last of the audience (contacts_order first or last)
confirmNoMust be true to create a campaign that is published (is_publish true) or scheduled (scheduled_at set), because that sends email. Leave false first to get a preview; nothing is created
dry_runNoValidate inputs and show what would be created without creating anything
subjectYesEmail subject line
tag_idsNoTag IDs to apply to campaign
list_idsYesList IDs to send to
reply_idNoPre-configured reply email ID (alternative to reply_email)
segmentsNoSegment IDs
sender_idNoPre-configured sender ID(s) (alternative to sender_name/sender_email)
is_publishNotrue publishes the campaign on creation, which SENDS it (now, or at scheduled_at). Default false creates a draft. Requires confirm: true
plain_textNoPlain text content
pause_rulesNoSmart test: send to pause_limit percent (1-50) first, wait wait_time minutes (1-43200), then continue only if the pause_criteria (open or click) rate is pause_condition (greater than or less than) pause_target percent (1-100). Give all five fields
reply_emailNoReply-to email address
sender_nameNoSender display name (auto-resolved from verified senders if omitted)
template_idNoID of a saved template to use as the content; a drag-and-drop template keeps its design. Give one of html, email or template_id
track_opensNoOpen tracking for this campaign: false turns the open pixel off. Omit to use the account default
scheduled_atNoSchedule datetime (YYYY-MM-DD HH:MM:SS, account timezone). Setting it publishes the campaign for sending at that time, so it requires confirm: true
sender_emailNoSender email address (auto-resolved from verified senders if omitted)
track_clicksNoClick tracking for this campaign: false turns link tracking off. Omit to use the account default
frequency_capNotrue skips contacts already emailed within the account's frequency-cap window; false turns it off. Omit to leave it unset
inbox_trackingNotrue turns Inbox Tracker on for this campaign (seed addresses measure inbox vs spam placement; uses Inbox Tracker quota). Needs the paid Inbox Tracker add-on: the API rejects true on accounts without it. Omit to leave it off
email_preheaderNoEmail preheader text (max 150 chars)
exclude_tag_idsNoTag IDs to exclude from send
exclude_list_idsNoList IDs to exclude from send
exclude_segmentsNoSegment IDs to exclude from send
exclude_segment_idsNoSame as exclude_segments (the name update_campaign uses)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / exclude_segment_ids
      Added value: +{
      +  "description": "Same as exclude_segments (the name update_campaign uses)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
    • changedInput schema / properties / frequency_cap / description
      Previous value: -"Frequency cap (daily, weekly, etc)"New value: +"true skips contacts already emailed within the account's frequency-cap window; false turns it off. Omit to leave it unset"
    • removedInput schema / properties / frequency_cap / type
      Removed value: -"string"
    • addedInput schema / properties / inbox_tracking
      Added value: +{
      +  "description": "true turns Inbox Tracker on for this campaign (seed addresses measure inbox vs spam placement; uses Inbox Tracker quota). Needs the paid Inbox Tracker add-on: the API rejects true on accounts without it. Omit to leave it off",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / track_clicks
      Added value: +{
      +  "description": "Click tracking for this campaign: false turns link tracking off. Omit to use the account default",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
    • addedInput schema / properties / track_opens
      Added value: +{
      +  "description": "Open tracking for this campaign: false turns the open pixel off. Omit to use the account default",
      +  "type": [
      +    "null",
      +    "boolean"
      +  ]
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / email / description
      Previous value: -"Design the email as rows and blocks, like create_dnd_email_template; it opens in the drag-and-drop editor. Give either html or email"New value: +"Design the email as rows and blocks, like create_dnd_email_template; it opens in the drag-and-drop editor. Give one of html, email or template_id"
    • addedInput schema / properties / template_id
      Added value: +{
      +  "description": "ID of a saved template to use as the content; a drag-and-drop template keeps its design. Give one of html, email or template_id",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / email / properties / rows / items / properties / slots / description
      Previous value: -"Section slot values by slot name: text slots take text; image slots take {src, alt, link, decorative}; button slots take {text, href}"New value: +"Section slot values by slot name: text slots take text; image slots take {src, alt, link, width, decorative}; button slots take {text, href}"
  4. Changed2 schema fields changed
    • addedInput schema / properties / email
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Design the email as rows and blocks, like create_dnd_email_template; it opens in the drag-and-drop editor. Give either html or email",
      +  "properties": {
      +    "name": {
      +      "description": "Template name",
      +      "type": "string"
      +    },
      +    "rows": {
      +      "description": "The email's rows, top to bottom",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "columns": {
      +            "description": "For a layout row: the blocks in each column, left to right",
      +            "items": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "block": {
      +                    "description": "Block name such as dd-text, dd-image or dd-button",
      +                    "type": "string"
      +                  },
      +                  "props": {
      +                    "additionalProperties": true,
      +                    "description": "Block settings from the catalog",
      +                    "type": "object"
      +                  }
      +                },
      +                "required": [
      +                  "block"
      +                ],
      +                "type": "object"
      +              },
      +              "type": [
      +                "null",
      +                "array"
      +              ]
      +            },
      +            "type": [
      +              "null",
      +              "array"
      +            ]
      +          },
      +          "layout": {
      +            "description": "Row layout ID such as one-column or two-equal (give this or section)",
      +            "type": "string"
      +          },
      +          "props": {
      +            "additionalProperties": true,
      +            "description": "For a layout row: backgroundColor and padding",
      +            "type": "object"
      +          },
      +          "section": {
      +            "description": "Ready-made section ID from list_email_sections (give this or layout)",
      +            "type": "string"
      +          },
      +          "slots": {
      +            "additionalProperties": true,
      +            "description": "Section slot values by slot name: text slots take text; image slots take {src, alt, link, decorative}; button slots take {text, href}",
      +            "type": "object"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "settings": {
      +      "additionalProperties": true,
      +      "description": "Email settings (see the catalog), plus address: the business postal address",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "rows"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • changedInput schema / properties / html / description
      Previous value: -"HTML email content"New value: +"HTML email content the user supplied (for an email you design, use email instead)"
  5. Changed3 schema fields changed
    • changedInput schema / properties / list_ids / description
      Previous value: -"List IDs to send to,required"New value: +"List IDs to send to"
    • changedInput schema / properties / name / description
      Previous value: -"Campaign name,required"New value: +"Campaign name"
    • changedInput schema / properties / subject / description
      Previous value: -"Email subject line,required"New value: +"Email subject line"
  6. Changed4 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Must be true to create a campaign that is published (is_publish true) or scheduled (scheduled_at set), because that sends email. Leave false first to get a preview; nothing is created",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / is_publish / description
      Previous value: -"Publish immediately: true or false (default: false creates a draft)"New value: +"true publishes the campaign on creation, which SENDS it (now, or at scheduled_at). Default false creates a draft. Requires confirm: true"
    • changedInput schema / properties / is_publish / type
      Previous value: -"string"New value: +"boolean"
    • changedInput schema / properties / scheduled_at / description
      Previous value: -"Schedule datetime (YYYY-MM-DD HH:MM:SS)"New value: +"Schedule datetime (YYYY-MM-DD HH:MM:SS, account timezone). Setting it publishes the campaign for sending at that time, so it requires confirm: true"
  7. Changed4 schema fields changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Validate inputs and show what would be created without creating anything",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / pause_rules
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Smart test: send to pause_limit percent (1-50) first, wait wait_time minutes (1-43200), then continue only if the pause_criteria (open or click) rate is pause_condition (greater than or less than) pause_target percent (1-100). Give all five fields",
      +  "properties": {
      +    "pause_condition": {
      +      "type": "string"
      +    },
      +    "pause_criteria": {
      +      "type": "string"
      +    },
      +    "pause_limit": {
      +      "type": "integer"
      +    },
      +    "pause_target": {
      +      "type": "integer"
      +    },
      +    "wait_time": {
      +      "type": "integer"
      +    }
      +  },
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedInput schema / properties / rules
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Sending limit: send to only limit contacts, taken from the first or last of the audience (contacts_order first or last)",
      +  "properties": {
      +    "contacts_order": {
      +      "type": "string"
      +    },
      +    "limit": {
      +      "type": "integer"
      +    }
      +  },
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
  8. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only supply the generic safety profile (not read-only, not idempotent, open-world), so the description carries real weight and delivers: it discloses that publish/schedule actually sends email, that the first call creates nothing, that sender is auto-resolved from verified senders, and that inbox_tracking is rejected by the API without the paid add-on. It stops short of stating what happens to a draft that is later edited or how failures surface, but the safety-relevant behavior is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical information is front-loaded — required fields and the draft default come before any optional detail — and most sentences carry distinct facts. It is, however, a single dense block, and the confirm requirement is restated in both the prose and the confirm schema description, which is mild redundancy for a tool this size.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 29-parameter creation tool with no output schema, the description covers the decision-critical ground: safety gating, defaults, sender resolution, content-source choice, and add-on constraints. The remaining gap is that it never says what the call returns (e.g. a campaign ID) or how the agent should proceed afterward, which matters because follow-up tools like add_lists_to_campaign and send_test_email need that identifier.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description still adds meaning beyond the field docs: it explains the sender auto-resolution fallback and the prompt when multiple senders exist, the reply-to default, the grouping of the three exclusion families, the smart-test semantics of pause_rules, and the first/last-N semantics of rules. It does not explain the exclude_segments versus exclude_segment_ids duplication beyond noting they are the same, which the schema already does.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Create a new email campaign in MailerCloud") and immediately pins down the scope: requires name, subject and at least one list ID, and defaults to a DRAFT that sends nothing. That default-versus-publish framing lets an agent distinguish this from schedule_campaign and update_campaign without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing conditions are given for the risky path: publishing or scheduling requires a first call without confirm to produce a preview, showing it to the user, then a second call with confirm: true. It also names the conditions for dry_run and for each content option (html vs email vs template_id), and states when reply_email/reply_id should be omitted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources