Skip to main content
Glama

update_sequence_step_tool

Destructive

Updates a single sequence step BY ITS ID: its content (template, topic), wait days, sending mailboxes, cc, threading, channel, step type, execution mode, LinkedIn and task settings, a condition's window or an A/B split's weights. Each field passed replaces the stored value; omitted fields are kept. It also works on a running campaign: new content and cc reach contacts not yet scheduled for the step, a threading change also applies to its queued emails, a new wait reschedules the step's queued messages, and a new mailbox list moves its queued emails off the removed mailboxes onto the listed ones and rewrites them for the new sender, replacing any hand edits and charging credits for AI work not yet paid for. A new channel, step type, execution mode, topic, invitation note or voice note likewise reaches contacts not yet scheduled for the step; it does not convert messages already queued or tasks already open. sequenceStepId is the step's 24-hex MongoDB id. Fields: template is {subject, body, format ('editor' or 'html')} and cannot be set on an AI-written step. sequenceStepType 'manual' uses that template; 'ai_generated' or 'ai_reply' has AI write each contact's message when the contact is scheduled for the step, costing credits per message (the campaign pauses if credits run out). topic is what AI writes about on an AI-written step; changing it there also regenerates the step's title. channel can move the step to email, linkedin_connection, linkedin_message, linkedin_visit, linkedin_like, inmail, dialer or todo if the sequence's order rules still hold (for example, a LinkedIn connection before any LinkedIn message); no step becomes or stops being a condition (channel 'condition' is accepted only on a step that already is one, where it changes nothing), the channel cannot change once a campaign with a condition has started, and leaving linkedin_message drops the voice note. executionMode 'automatic' has FuseAI send or perform the step through the user's mailbox or LinkedIn account; 'manual' makes it a task for a person, and the contact waits until the task is done or skipped (dialer and todo steps are always manual, linkedin_visit and linkedin_like always automatic). invitationText (linkedin_connection, up to 200 characters; empty removes it) is the note sent with the connection request. voiceNoteScript (automatic linkedin_message steps, up to 100 words, about 45 seconds; empty or null removes it) adds a voice note in the cloned voice of the sending account's owner or the campaign owner; each one LinkedIn accepts costs credits. reactionType (linkedin_like: like, celebrate, support, love, insightful, funny, or auto to choose from the post), postRecencyDays (linkedin_like, 1-365: the reaction goes on the contact's newest post from that many days back, and the step is skipped if there is none) and inmailExhaustionBehavior (inmail: 'skip', the default, skips the InMail when the LinkedIn account has no InMail credits left; 'defer' waits once for the next monthly refill) are read at send time, so they also apply to queued messages. replyInSameThread (email and inmail): true replies in the contact's existing thread, false starts a new thread with the step's subject, null resets it to true; a step done by a person always starts a new thread. cc lists the addresses copied on the step's emails. On a step done by a person, autoSkipAfterDays (1-365; null waits forever) is how long an unstarted task stays open before it expires and the contact moves on, and taskInstructions and taskLinkUrl (http or https) are shown on the task; all three also update the step's open tasks, so a shorter autoSkipAfterDays can expire them. channelSequenceNumber is the step's place among steps of its channel (0 for the first), which AI-written steps use to write an opener or a follow-up; the backend recomputes it when steps are added, removed, reordered or change channel. On a condition step only daysBetween, its window of 1-30 days, can change; on an A/B split (conditionType 'ab_split') only splitArms can change, at any time and also on a running campaign: send both arms ('a' then 'b') with whole-percent weights adding up to 100 and optional names. On a started campaign, contacts the split already routed who were not yet sent anything in their arm then follow the new weights; contacts their arm already contacted, or who replied, bounced or unsubscribed, keep their arm. A step's position moves through reorder_sequence_steps_tool. To choose an email step's sending mailboxes, pass allowedInboxes built from list_email_accounts; it replaces the step's whole list. When editing email content, pass BOTH subject and body together (nested under template); the backend replaces the step's template, so sending only one would drop the other. Only these personalization tokens are substituted (single braces, exact names): {Contact Full Name}, {Contact First Name}, {Contact Last Name}, {Contact Company}, {Contact Job Title}, {Contact Industry}, {Sender Full Name}, {Sender First Name}, {Sender Last Name}, {Sender Job Title}, {Sender Signature}. The {Sender …} tokens take the name, title and signature of the mailbox or LinkedIn account that sends the step; the campaign's sender name and job title fill in only when that account has none. Two more token kinds are resolved per contact: {Column: } inserts the contact's value from that column of the campaign's lists, and {{}} has AI write that part for each contact from their data, which costs credits for each message that uses it ({{ :: }} rewrites existing words, keeping them as the fallback). Anything else is sent to the prospect literally.

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": {
      "sequenceStepId": "<sequenceStepId>"
    },
    "name": "update_sequence_step_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
topicNo
channelNo
templateNo
splitArmsNoab_split steps only: both arms, arm 'a' then arm 'b', each { key, label?, weight }. Weights are whole percents adding up to 100: each contact reaching the split is routed to an arm in these weights' proportions, by a fixed hash of the contact and the split, and stays in it. They can change at any time, also on a running campaign: contacts already routed but not yet sent anything in their arm then follow the new weights.
daysBetweenNo
taskLinkUrlNo
reactionTypeNo
executionModeNo
allowedInboxesNoEmail steps only: the user's mailboxes this step sends from; each contact is sent from one of them. Build every entry from list_email_accounts, using only accounts with isActive and isConnected true that are the user's own (isOwner) or have USE_IN_CAMPAIGN in sharedPermissions. Entries are not checked on save and the email is sent from inboxId as given. Replaces the step's whole list: omit to keep it, or pass [] to let the backend pick among all the user's usable mailboxes again.
invitationTextNo
sequenceStepIdYes
postRecencyDaysNo
voiceNoteScriptNo
sequenceStepTypeNo
taskInstructionsNo
autoSkipAfterDaysNo
replyInSameThreadNo
channelSequenceNumberNo
inmailExhaustionBehaviorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds far more: omitted fields are kept, each passed field replaces the stored value, mailbox changes move queued emails off removed mailboxes and rewrite them for the new sender, and AI work charges credits (with the campaign pausing if credits run out). It also discloses irreversible side effects (voice note dropped when leaving linkedin_message, shorter autoSkipAfterDays expiring open tasks) and that allowedInboxes entries are not validated on save.

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

Conciseness3/5

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

It is front-loaded with the purpose and nearly every sentence carries real information, but it is delivered as one dense, unbroken paragraph mixing core behavior, field-by-field reference, and personalization token syntax. Some material (token list, credit accounting, channel order rules) would scan far better as grouped bullets or a separate reference section, which hurts an agent parsing it under context pressure.

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 20-parameter mutation tool with no output schema, the definition covers the mutation semantics, campaign-state interactions, credit implications, cross-field coupling, and even the personalization token contract. There is nothing an agent needs to know before invoking it that is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 10%, so the description must carry the load, and it does: it defines template as {subject, body, format}, explains sequenceStepType semantics and credit cost, constrains topic to AI steps, enumerates channel transitions and their order rules, and covers splitArms weights, daysBetween windows, replyInSameThread's tri-state, and autoSkipAfterDays' null meaning. It also adds cross-parameter rules the schema cannot express, notably that subject and body must be passed together and the exact substitution token list.

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 a precise verb+resource+identity ('Updates a single sequence step BY ITS ID') and immediately enumerates the mutable surface (content, wait days, mailboxes, cc, threading, channel, step type, etc.). It also explicitly distinguishes itself from reorder_sequence_steps_tool ('A step's position moves through reorder_sequence_steps_tool'), so an agent can separate the two without inspecting schemas.

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?

It states when each sibling/helper is required: use reorder_sequence_steps_tool for position and list_email_accounts to build allowedInboxes. It also gives explicit when-not constraints, e.g. a channel cannot change once a campaign with a condition has started, channel 'condition' is only accepted on an existing condition step, and template cannot be set on an AI-written step.

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.