Skip to main content
Glama
Sequenzy MCP Server

Sequenzy MCP Server

Official
by Sequenzy

update_campaign_variation

Destructive

Rename an email campaign variation, replace its blocks or HTML, subject, preview text, theme, or font, and reposition it on the editor canvas to test alternative designs.

Instructions

Rename a campaign variation, replace its content (blocks or html, subject, previewText, emailTheme, fontFamily) or move it on the canvas (position). Content can only change once the variation is ready. To change it with AI instead, use edit_campaign_variation. To apply a section option from generate_campaign_variation_section_options, swap its replacement blocks into the variation's blocks by id and send the full blocks array here. Never changes the campaign email.

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": {
      "campaignId": "<campaignId>",
      "variationId": "<variationId>"
    },
    "name": "update_campaign_variation"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML converted to blocks. Use instead of blocks.
nameNoNew name, 1-120 characters.
blocksNoSequenzy email blocks. Use this for editor-compatible content, including conditional and repeat blocks. For provider-migrated HTML from another email platform, prefer the `html` field instead; Sequenzy stores it as one raw HTML block to preserve the original design. Use `styles` for per-block background, background opacity, text color, padding, border radius, border width, and border color. Recolor body copy with `styles.textColor` (or the top-level `textColor` alias), not with an inline `style` on `<p>` or `<span>`. Top-level style aliases such as `backgroundColor`, `backgroundOpacity`, `textColor`, `textAlign`, `borderColor`, `borderWidth`, and `borderRadius` are also accepted and saved under `styles`. Repeat blocks use { type: 'repeat', source: 'items', itemAlias: 'item', children: [...] }. Merge tags resolve in this content but are always HTML-escaped; prefix a tag with 'html.' - e.g. {{html.subscriber.body_html}} - to insert a trusted subscriber attribute or variable holding prebuilt HTML unescaped. Injected HTML is sanitized (scripts, event handlers, and dangerous URLs stripped), must be final HTML, and renders raw only in HTML text position, never inside attributes. Any block accepts a `conditions` array so it only renders for matching recipients; conditions must all match unless the block sets `conditionsMatch: "any"`, and a numeric path segment reads one list item (`goals.0:bias`). To branch on a value passed in transactional `variables` or an automation `event` payload, use { "id": "c1", "field": "variable", "operator": "is", "value": "plan:pro" }; "attribute" uses the same "name:value" form, while "email"/"firstName"/"lastName" use a plain comparison value. Live subscriber fields are "status", "tag", "list", "segment", "event", "emailProvider", "phone", "phoneCountry", "smsStatus", "added", "stripeProduct", "stripeCurrentProduct", "stripeTrialProduct", "commerceProduct", "commerceCollection", "emailSent", "emailDelivered", "emailOpened", "emailClicked", "emailBounced", and "emailComplained". They use the same field-specific values and operators as segment filters, for example { "id": "c2", "field": "segment", "operator": "is", "value": "seg_123" }, { "id": "c3", "field": "tag", "operator": "contains", "value": "vip" }, or { "id": "c4", "field": "event", "operator": "at_least", "value": "purchase:3:30d" }. Supported operators across fields are is, is_not, contains, not_contains, starts_with, not_starts_with, gt, gte, lt, lte, less_than, more_than, at_least, less_than_count, is_empty, is_not_empty, is_temporary_bounce, and is_permanent_bounce; each field accepts only its segment-filter operators. Recipients without a stored subscriber match use the OTHERWISE branch or hide a conditionally displayed block. For if/else, use a { type: "conditional-group", conditions: [...], ifBranch: { children: [...] }, elseBranch: { children: [...] } } block. `styles` applies to the block's own container, not to an inner rendered element. On a button block, `styles.backgroundColor` colors the band behind the button and `styles.textColor` does not reach the label - set the top-level `buttonColor` and `buttonTextColor` fields instead, or leave them unset to inherit the email theme's primary color. Unsupported fields are discarded and reported in the response `warnings` array rather than rejected. Polls and NPS surveys use a native poll block. For answer buttons use { "type": "poll", "variant": "options", "question": "What did you think?", "options": [{ "label": "Loved it", "value": "loved" }, { "label": "Not for me", "value": "not_for_me" }], "attributeKey": "email_feedback" }. For NPS use { "type": "poll", "variant": "nps", "question": "How likely are you to recommend us?", "options": [], "attributeKey": "nps_score", "npsLowLabel": "Not likely", "npsHighLabel": "Very likely" }. `attributeKey` stores the latest response for segmentation. Set `allowMultiple: true` on a text-only options poll to let recipients pick several answers: answer links then open a hosted selection page where the recipient checks any number of options and saves them in one submit, and `attributeKey` stores the list of selected values (filter with attribute `contains`). Multi-select polls cannot use option images or configurations whose encoded signed links exceed the delivery-safe size limit. Optional `appearance` picks the answer style: "soft" (default), "pill", "outline", "filled", "pop" (hard-shadow boxes), "brutal" (square uppercase slabs), "quiz" (A/B/C letter badges), or "minimal" (bare ruled rows). `optionLayout: "row"` puts text answers side by side. `accentColor` recolors every appearance, including "brutal". `optionRadius` sets answer-button corners in px (0 is square) independently of `styles.borderRadius`, while `questionColor` recolors only the question. `fontFamily` applies to the poll; `optionFontSize`, `optionFontWeight`, `optionLetterSpacing`, and `optionTextTransform` style answers, and the matching `questionFontSize`, `questionFontWeight`, `questionLetterSpacing`, and `questionTextTransform` fields style the question. Sizes and spacing are px, weights are 100-900, and transforms are "none" or "uppercase". `confirmationMessage` customizes the hosted thank-you page; `redirectUrl` sends respondents to another page with `?answer=<value>`. For a new image, call `upload_image_asset` first and insert its returned `imageBlock`. A responsive fixed-height screenshot crop uses { "type": "image", "src": "https://...", "alt": "Product dashboard", "width": 100, "widthType": "percent", "height": 320, "objectFit": "cover", "align": "center" }. A YouTube video block can override its still with { "type": "video", "videoUrl": "https://www.youtube.com/watch?v=...", "thumbnailUrl": "https://cdn.example.com/cover.jpg", "alt": "Watch the product tour" }. Replacing the blocks array without `thumbnailUrl` restores YouTube's own thumbnail; the video destination remains `videoUrl`. Minimal valid core examples: {"type":"heading","content":"Title","level":1}; {"type":"text","content":"<p>Paragraph with <strong>bold</strong></p>","variant":"paragraph"}; {"type":"list","variant":"bullet","items":[{"content":"First point"},{"content":"Second point"}]}; {"type":"steps","variant":"timeline","items":[{"title":"Connect","description":"Link your account."},{"title":"Launch","description":"Send your first campaign."}]}; {"type":"button","text":"Click Me","url":"https://example.com","variant":"primary"}; {"type":"image","src":"https://...","alt":"Description","width":100,"widthType":"percent","height":240,"objectFit":"cover","href":"https://example.com","align":"center"}. Heading and text use `content`; button uses `text` but also accepts `content` as an alias and defaults `variant` to `primary`. Image `widthType` accepts `percent` or `px`. Lists are their own block type, never a text variant: `text` accepts only variant paragraph, lead, or html and never accepts `items`, so a numbered list is {"type":"list","variant":"numbered","items":[{"content":"First"}]} and a visual numbered walkthrough is {"type":"steps","variant":"numbered","items":[{"title":"Step one","description":"What happens"},{"title":"Step two","description":"What happens next"}]}. List items carry `content`; steps items carry `title` plus an optional `description`. A list item nests under the item above it with `indent` 1 or 2. Call `get_email_block_schema` for the required and optional fields of any other block type. If that tool is not in the MCP tool list, enable it on the Sequenzy connector rather than inferring fields from live HTML; the same reference is also at `sequenzy://email-blocks` (MCP resource), `GET /api/v1/email-blocks` (API), and `sequenzy blocks <type>` (CLI). Send blocks or html, not both.
subjectNoSubject this variation uses. null keeps the email's subject when it is used.
summaryNoWhat this version changes, up to 500 characters.
positionNoWhere the variation sits on the editor canvas, as {x, y} in canvas pixels. null lets the canvas place it automatically. Moving it does not change updatedAt.
companyIdNoCompany ID. If omitted, uses the currently selected company.
campaignIdYesEmail campaign ID.
emailThemeNoThe variation's own email theme (presetId, colors, typography, layout); a partial theme is completed with defaults. null uses the email's theme. Using the variation puts its theme on the email.
fontFamilyNoThe variation's own body font stack. null uses the email's font.
previewTextNoPreview text this variation uses. null keeps the email's.
variationIdYesVariation ID.

Output Schema

NameRequiredDescriptionDefault
noteNoAdditional context about the result.
itemsNoFallback array wrapper used only when a tool returns a bare array.
valueNoFallback object wrapper used only when a tool returns a non-object value.
messageNoHuman-readable status, confirmation, or next-step message.
successNoWhether the Sequenzy operation succeeded.
warningsNoNon-fatal cautions about content, permissions, or follow-up actions.
variationNoThe campaign variation record returned by Sequenzy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds useful behavioral context beyond annotations: the readiness prerequisite for content changes, the section-option workflow, and the explicit guarantee that the campaign email itself is not changed. It does not elaborate on reversibility or what happens to prior blocks, but 'replace its content' implies overwrite.

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

Conciseness5/5

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

The description is front-loaded with the main capabilities, then adds only the constraints and alternative-routing information an agent needs. The section-option sentence is dense but earns its place, and no sentence is redundant.

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 tool, the description covers the critical preconditions, sibling alternatives, and scope boundary, while the schema and output schema handle detailed field and return-value documentation. Nothing essential for correct invocation appears to be missing.

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?

With 100% schema description coverage across 12 parameters, the schema carries most parameter meaning and the baseline would be 3. The description still adds value by mapping parameters to rename/replace/move operations and by specifying that applying a section option requires sending the full blocks array here. That workflow nuance goes beyond the schema, though most field-level semantics remain in the schema.

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?

The opening sentence gives specific verbs (rename, replace, move), the resource (campaign variation), and the exact content fields plus position. It explicitly distinguishes itself from edit_campaign_variation and states the scope boundary that it never changes the campaign email.

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?

The description states the key precondition that content can only change once the variation is ready, routes AI-driven edits to edit_campaign_variation, and explains how to apply section options by swapping replacement blocks by id and sending the full blocks array. It also clarifies the blocks-versus-html choice, leaving little ambiguity about when and how to use this tool.

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

Deploy Server

Other Tools