Skip to main content
Glama

MailBeast.ai

Update a campaign

update_campaign
DestructiveIdempotent

Change a campaign. Only sections you pass change — but sequence, accounts and tagIds, when passed, REPLACE the existing ones entirely. Replacing sequence rebuilds every step from what you pass: keep a step's A/B test by passing its variants again, without the step's own subject + body (get_campaign shows variant A there too; a step with only subject + body becomes a single variant A). Steps and variants get NEW ids — read get_campaign again before send_test_email. A running campaign's sequence cannot be replaced; pause it first (the whole call is then rejected and nothing changes).

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": {
      "id": "<id>"
    },
    "name": "update_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCampaign id (UUID).
nameNo
tagIdsNoREPLACES the campaign tags ([] removes them all).
accountsNoREPLACES the attached mailbox set — the mailboxes the campaign sends from when settings.useAllAccounts is false.
scheduleNoSending schedule.
sequenceNoREPLACES the whole sequence.
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.2/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds the details an agent actually needs: three fields destroy prior state wholesale, a rejected call is atomic ("nothing changes"), and sequence replacement mints new step/variant ids, which invalidates ids read earlier. That is exactly the beyond-annotation context the destructive hint implies but does not spell out. One minor tension: idempotentHint=true sits awkwardly with "steps and variants get NEW ids" on repeat calls, though the resulting campaign state is equivalent.

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 destructive replacement rule is front-loaded, then the A/B preservation trick, then the id-churn warning, then the precondition — a sensible order with no filler sentences. It is dense but readable; a couple of clauses ("get_campaign shows variant A there too") restate schema content and could be trimmed.

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 7-parameter, deeply nested, destructive mutation with no output schema, the description covers the highest-risk semantics: partial vs full replacement, atomic failure, and id invalidation. Remaining gaps are small — it never says what the call returns, and the "pause it first" instruction does not name the pause_campaign sibling.

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 86%, so the schema already carries most parameter meaning, including the REPLACES wording for sequence, accounts and tagIds. The description still adds real value the schema does not: the variants-vs-subject+body contract for preserving an A/B test, and the id-regeneration consequence of rebuilding a sequence. It repeats some schema text rather than adding to it, which keeps it off a 5.

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

Purpose4/5

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

"Change a campaign" is a clear verb+resource, and the following sentences sharpen it into a partial-update tool with three full-replace fields, which distinguishes it from create_campaign and update_subsequence. It stops short of naming a sibling it is not, so it is clear but not maximally differentiated.

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

Usage Guidelines4/5

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

It states the operative rule (only passed sections change; sequence/accounts/tagIds replace) and gives an explicit prerequisite: a running campaign's sequence cannot be replaced, pause it first. It also routes the agent to get_campaign before send_test_email. What is missing is an explicit pointer to the pause tool by name and any statement about when to prefer update_subsequence or create_campaign.

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