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).

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. 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."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Goes well beyond the annotations by disclosing that sequence/accounts/tagIds replace wholesale, that steps and variants receive new ids, and that a running campaign's sequence update is rejected atomically. However, several of these replacement semantics are already documented in the schema field descriptions, so the marginal value is real but partly duplicated.

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?

Front-loads the core rule — only passed sections change — then layers the replacement caveats in order of risk. It is dense and readable, though the long compound sentences demand careful parsing.

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 destructive partial-update tool with a deeply nested schema and no output schema, it covers the highest-risk behaviors: replacement, id churn, and rejection when a campaign is running. Permissions or auth requirements are not mentioned, which leaves a small 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 description coverage is 86%, so the schema already documents parameters thoroughly, including REPLACES semantics on tagIds, accounts and sequence. The description reinforces the variant/step shape but adds little that the nested field descriptions do not already say.

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" states a specific verb and resource, and the surrounding sentences make clear this is a partial-update tool rather than a creation or deletion one. It never names create_campaign or get_campaign as the alternatives explicitly, so sibling differentiation is implied rather than stated.

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?

Gives concrete when-to-use context: pass only the sections you want changed, pause a running campaign before replacing its sequence, and re-read get_campaign before send_test_email. It lacks explicit when-not-to-use guidance (e.g. versus update_subsequence or create_campaign), which keeps it below a 5.

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