Skip to main content
Glama

MailBeast.ai

Create a campaign (draft)

create_campaign
Destructive

Create a campaign as a DRAFT — it does not send. Optionally set the schedule, settings, the email sequence (steps can carry up to 5 A/B variants), campaign tags and lead emails (up to 1000; add full lead details with add_leads). By default the campaign sends from ALL connected mailboxes of the workspace; to send only from specific ones pass accounts with settings.useAllAccounts = false. Nothing is sent until start_campaign; send_test_email sends a preview of a step first.

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>"
    },
    "name": "create_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
leadsNoLead email addresses. Malformed ones are counted as invalid, not rejected.
tagIdsNoCampaign tag ids to put on it (read them from `tags[]` of list_campaigns / get_campaign; tags are created in the dashboard).
accountsNoMailbox ids the campaign sends from when settings.useAllAccounts is false; while it is true they do not limit sending.
scheduleNoSending schedule.
sequenceNoEmail steps in send order.
settingsNoThe campaign Settings page: tracking, stop rules, lead skipping by verification, text mode, unsubscribe, sending pattern, A/B optimization, keep active when leads run out, which mailboxes send.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / settings / properties / stopCompanyCategories
      Added value: +{
      +  "description": "Reply types that stop the company. Default for a new campaign: every reply type except lead_replied_out_of_office and lead_replied_wrong_person (campaigns created before this setting stop on every reply type until it is changed). An empty list means no reply stops the company.",
      +  "items": {
      +    "enum": [
      +      "lead_replied_interested",
      +      "lead_replied_meeting_request",
      +      "lead_replied_out_of_office",
      +      "lead_replied_wrong_person",
      +      "lead_replied_not_interested",
      +      "lead_replied_unsubscribed",
      +      "lead_replied_uncategorized"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / settings / properties / stopCompanyOnReply / description
      Previous value: -"A reply stops the sequence for every lead of the same company email domain (public domains like gmail.com never match). Default true."New value: +"A reply stops the sequence for every lead of the same company email domain (public domains like gmail.com never match). Which replies count: stopCompanyScope and stopCompanyCategories. Default true."
    • addedInput schema / properties / settings / properties / stopCompanyScope
      Added value: +{
      +  "description": "Where a reply counts for stopCompanyOnReply: workspace = a reply in any campaign of this workspace (default for a new campaign); campaign = only this campaign and its subsequences (campaigns created before this setting use campaign until it is changed).",
      +  "enum": [
      +    "workspace",
      +    "campaign"
      +  ],
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • changedInput schema / properties / schedule / properties / sendingMinutesEnd / description
      Previous value: -"Send-window end, minutes from midnight (1020 = 17:00)."New value: +"Send-window end, minutes from midnight (1020 = 17:00, 1440 = midnight). Multiple of 30."
    • changedInput schema / properties / schedule / properties / sendingMinutesEnd / maximum
      Previous value: -1439New value: +1440
    • changedInput schema / properties / schedule / properties / sendingMinutesEnd / minimum
      Previous value: -0New value: +30
    • changedInput schema / properties / schedule / properties / sendingMinutesStart / description
      Previous value: -"Send-window start, minutes from midnight (540 = 09:00)."New value: +"Send-window start, minutes from midnight (540 = 09:00). Multiple of 30."
    • changedInput schema / properties / schedule / properties / sendingMinutesStart / maximum
      Previous value: -1439New value: +1410
    • changedInput schema / properties / sequence / items / properties / delayDays / description
      Previous value: -"Days to wait before this step (0 for the first email)."New value: +"Days to wait before this step (0 for the first email). From step 2 on, delayDays + delayHours must be at least 1 hour."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the write/destructive/non-idempotent profile, and the description adds the crucial behavioral fact that creation is a non-sending draft plus the default all-mailbox sending behavior. It does not explain the response, quota/rate behavior, or why a create is flagged destructive, leaving a small transparency gap relative to a multi-parameter mutation.

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 definition is a dense paragraph but front-loads the draft/no-send semantics and then layers the optional configuration summary and the sibling routing. A few clauses restate schema facts (lead cap, variant cap), but nothing is padded and the ordering is logical.

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 complex, 7-parameter tool with nested objects and no output schema, the description covers the critical lifecycle semantics, defaults, and alternatives well. It omits what a successful call returns (e.g., a campaign id needed to invoke start_campaign), which is a meaningful but not fatal gap.

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

Parameters3/5

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

Schema coverage is high (86%), so nested parameters such as schedule, settings, and sequence are already thoroughly documented in the schema. The description's mentions of `accounts`/`useAllAccounts`, the 1000-lead cap, and 5 A/B variants largely restate schema content rather than adding new meaning, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('Create a campaign as a DRAFT') and immediately qualifies the scope — it does not send. It also names the lifecycle siblings (start_campaign, send_test_email, add_leads) so an agent can tell it apart from the launch, preview, and lead-import tools without opening schemas.

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?

Explicitly routes the agent: this tool creates a draft, nothing is sent until start_campaign, previews come from send_test_email, and full lead records come from add_leads. It also gives the conditional rule for the mailbox parameter ('to send only from specific ones pass `accounts` with settings.useAllAccounts = false').

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