Skip to main content
Glama

Update campaign sequence

update_campaign_sequence

Edit one step of a campaign's email sequence (subject, body, delay), as the dashboard's email editor does; on a live campaign the change applies to every enrolled recipient's next unsent step. Follow-ups always reply in step 1's thread as Re: plus its subject, so subject is for step 1 only. Website copy must pass the check enrolment runs (no links, bare domains, stock phrases, unknown tokens or empty offer), else nothing is saved. Website copy personalises with tokens such as {{greeting}}, {{opener}}, {{tease_pitch}}, {{offer_pitch}} and {{signoff}}: get_campaign shows a campaign's templates and preview_campaign_step renders one for a site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoThe body template, with {{tokens}}.
stepYesThe step to edit, 1 for the opener.
confirmNoSet true after the user confirmed an action the guard flagged as hard to undo.
subjectNoStep 1 only.
delay_daysNoDays after step 1 this step is due (step 1 goes at enrolment).
campaign_idYesA campaign id from list_campaigns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly false, idempotent false, destructive false). The description goes well beyond by disclosing the key side effect that on a live campaign the change applies to every enrolled recipient's next unsent step, the validation gate that must pass or nothing is saved, and the confirm-flag guard for hard-to-undo actions.

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?

Core purpose is front-loaded in the first clause, followed by side effects, then token/validation detail. It is dense and slightly run-on across clauses, but nearly every sentence carries actionable constraint information rather than filler.

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?

With 6 parameters at full schema coverage, no output schema, and no nested objects, the description covers what is missing from structured data: live-campaign propagation, validation failure behavior, token syntax, and where to preview. An agent has enough to invoke it correctly.

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 baseline is 3, but the description adds real meaning: subject is step-1-only, body personalises via named {{tokens}}, and website copy must pass specific checks (no links, bare domains, stock phrases, unknown tokens, empty offer). Those constraints are not 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?

States a specific verb (edit) and resource (one step of a campaign's email sequence) plus the fields it mutates (subject, body, delay). It is clearly separable from update_campaign_settings and rename_campaign by naming the step-level granularity.

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 clear context for when to use it (editing a step's subject/body/delay, with an explicit note that subject applies to step 1 only) and routes to get_campaign and preview_campaign_step for tokens/preview. It does not explicitly exclude or contrast with update_campaign_settings for non-step edits, so it falls short of a full when/when-not statement.

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