Skip to main content
Glama

Change a campaign draft

updateCampaign
Destructive

Change a campaign that has not gone out (a draft or a scheduled one): its name, subject, the second subject it tests (null stops the test), the preview line, the audience, or its body. blocks replaces the body with exactly those blocks: readCampaign gives them as saved, so change the ones asked and send them all back. A new brief, or new productIds, writes the body again from the brief instead, as draftCampaign does; every other field changes only itself. Takes the campaign's broadcastId (readCampaigns lists them). It replaces what was there; sendTestCampaign shows the result in an inbox.

Only for a workspace with subscribed email contacts.

A change inside Kooga: it runs at once, as the person.

Input Schema

NameRequiredDescriptionDefault
nameNoA new internal name
briefNoA new goal and angle: the body is written again from it. Never invent discounts, prices, stock or urgency
blocksNoThe body, top to bottom, exactly as it should read. No footer: the sender line and the unsubscribe link are added under every email. readCampaign shows a body as it is saved
subjectNoMerge tags are filled per reader: {{first_name}} or {{first_name|fallback}}, with first_name, last_name, name, city, country
subjectBNoA new second subject to test; null stops the test
preheaderNoThe line shown after the subject in the inbox
productIdsNoProducts to feature instead, by the store's own id; the body is written again around them
segmentKeyNoWhich audience: 'all', a segment's key, or a segment's id, exactly as readSegments gives them
abTestHoursNoHow long the test runs
broadcastIdYesThe campaign, by its id in Kooga
workspaceIdNoThe workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace.
campaignNameNoWhat it is called now, so the change is recorded by name

Output Schema

NameRequiredDescriptionDefault
statusYes
changedYesThe fields that changed
subjectYes
subjectBYes
broadcastIdYes
productsLeftOutYesChosen products that are not in the new body: unknown here, out of stock, without a page or not on sale

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint=true, idempotentHint=false) by explaining *what* is destroyed: `blocks` replaces the body wholesale, so the agent must round-trip the full saved block list rather than patch one block. It also discloses execution semantics — 'it runs at once, as the person' — and the workspace precondition, which no annotation conveys.

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 scope and the mutable field list, then the body-replacement rule, then the trailing constraints. Dense but nearly every clause carries operational meaning; the final two one-liners (workspace precondition, execution timing) could have been folded into the opening for tighter structure.

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

Completeness5/5

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

For a 12-parameter mutation with a deeply nested `blocks` union, the description supplies the one thing the schema cannot — the interaction between `blocks`, `brief` and `productIds` (replace vs regenerate) — plus auth/scope and preview routing. An output schema exists, so return values need no explanation.

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, but the description adds real semantics the schema can't: `subjectB: null` stops the A/B test, `brief` or `productIds` regenerates the body instead of editing fields, and every other field 'changes only itself.' The read-modify-write contract for `blocks` is the single most valuable clarification here.

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 plus a hard scope boundary — 'a campaign that has not gone out (a draft or a scheduled one)' — then enumerates exactly which fields can change. This separates it cleanly from draftCampaign (creation), scheduleCampaign, deleteCampaign and sendTestCampaign without the agent needing to open any schema.

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?

Routes the agent through the workflow: readCampaign to fetch blocks as saved, readCampaigns to obtain the broadcastId, sendTestCampaign to see the result in an inbox, draftCampaign as the analogue for brief-driven body rewrites. It also states the precondition 'Only for a workspace with subscribed email contacts.' It stops short of explicitly naming what to do with an already-sent campaign (resendCampaign), which keeps it off 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