Skip to main content
Glama

create_sequence_step_tool

Destructive

Adds a new sequence step to a campaign at an explicit position, specifying channel, wait days, type, and content. A step placed first in the root list sets the previous first step's wait to 3 days if it was 0. Requires campaignId, sequenceNumber, sequenceStepType ('manual' uses the content given; 'ai_generated' has AI write each contact's message) and daysBetween (whole days to wait after the previous step); channel defaults to 'email'. For sequenceStepType 'ai_generated' on an email, LinkedIn message or InMail step, AI writes the step's topic and title from the campaign's focus and company details, and any topic passed is ignored. sequenceNumber is the 0-based position within the target list: the root list, or the lane named by parentStepId (a condition step's id) and branchKey ('yes' or 'no'; 'a' or 'b' under an A/B split). Nothing can be placed after a list's last step when that step is a condition. To branch, add a step with channel 'condition', conditionType 'invite_accepted' (needs a LinkedIn connection step earlier on its path) or 'clicked_link' (needs an email step earlier on its path), sequenceStepType 'manual' and daysBetween as the window (1-30 days); it is appended to its list, and its lanes are then filled by adding steps with its id as parentStepId. To A/B test two paths, add a step with channel 'condition', conditionType 'ab_split', sequenceStepType 'manual', daysBetween 0 and optionally splitArms [{ key: 'a', label?, weight }, { key: 'b', label?, weight }] (whole percents adding up to 100; omitted means 50/50); it may be the first step, and each contact reaching it goes to one arm in the weights' proportions, by a fixed hash of the contact and the split, and stays there. Fill each arm with steps whose parentStepId is the split's id and branchKey 'a' or 'b'; an arm may stay empty to hold contacts out. Splits and conditions can only be added before the campaign starts, and no step can be added once a campaign with a split or condition has started. On a started campaign without them, the new step joins the live sequence: contacts still in it are sent the new step as well, from the user's connected mailbox or LinkedIn account. To choose which of the user's mailboxes send an email step, pass allowedInboxes built from list_email_accounts, as [{ inboxId: the mailbox's email address, emailAccountType: its account value }]; omitted, any of the user's usable mailboxes may send it. Other fields: template { subject, body, format 'editor' or 'html' } is a 'manual' step's message, and topic the brief an AI-written step is written from; invitationText (linkedin_connection, up to 200 characters) is the note sent with the invite; voiceNoteScript (linkedin_message, up to 100 words) adds a voice note in the sender's cloned voice, and each one sent costs credits; a linkedin_like step reacts with reactionType (like, celebrate, support, love, insightful, funny, or auto for AI's pick; default like) to the contact's newest post from the last postRecencyDays days (1-365, default 30), and is skipped if there is none; inmailExhaustionBehavior (inmail) is 'skip' (default) or 'defer' (once, to the next monthly refill) for when the sending LinkedIn account has no InMail credits left; cc (email) lists extra email addresses copied on every email the step sends; replyInSameThread (email, inmail) false starts a new thread instead of replying in the contact's earlier one; executionMode 'manual' (always for dialer and todo, never for linkedin_visit or linkedin_like) raises a task for a person and holds the contact until it is done or skipped, while 'automatic' (the default) has the campaign perform the step; autoSkipAfterDays (1-365) skips such a task left unstarted that many days after it is due, and taskInstructions and taskLinkUrl (an http(s) link) are shown on it; channelSequenceNumber has no effect, as the server renumbers every step. In email/message content, 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 ({{ :: }} rewrites existing words, keeping them as the fallback). Anything else is sent to the prospect literally. When the campaign writes each message, an 'ai_generated' step or a {{...}} part costs credits.

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>",
      "sequenceNumber": "<sequenceNumber>"
    },
    "name": "create_sequence_step_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
topicNo
channelNo
templateNo
branchKeyNoWhich lane of parentStepId. Under an invite_accepted or clicked_link condition: 'yes' (the signal arrived in time) or 'no'. Under an ab_split: the arm, 'a' or 'b'. Sent together with parentStepId.
splitArmsNo
campaignIdYes
daysBetweenNo
taskLinkUrlNo
parentStepIdNoThe condition step whose lane this list is. Omit (or null) for the root list. Sent together with branchKey.
reactionTypeNo
conditionTypeNo
executionModeNo
allowedInboxesNo
invitationTextNo
sequenceNumberYes0-based position within the target list (the root list, or the lane named by parentStepId + branchKey). Later steps of that list shift down; a condition step is always appended. The server then renumbers the whole campaign in sequence-tree order.
postRecencyDaysNo
voiceNoteScriptNo
sequenceStepTypeNo
taskInstructionsNo
autoSkipAfterDaysNo
replyInSameThreadNo
channelSequenceNumberNo
inmailExhaustionBehaviorNo

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?

Annotations only say destructive/openWorld; the description supplies the actual side effects: inserting first shifts the previous first step's wait to 3 days if it was 0, the server renumbers the whole campaign, steps join the live sequence for started campaigns, voice notes and AI-generated steps cost credits, and InMail fallback behavior. That is behavior an agent cannot infer from the annotation flags or the schema.

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?

Content is front-loaded with purpose and required params, but it is one very long unstructured paragraph with no bullets or section breaks, making 700+ words hard to scan. Most sentences earn their place (token list, credit costs, lane mechanics), but the density and lack of structure impose real reading cost.

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 24-parameter, high-complexity mutation tool with no output schema and sparse annotations, the definition covers creation, positioning, branching, A/B splits, live-campaign behavior, per-channel options, task execution and content tokens. Little an agent needs to call it correctly 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 13% across 24 parameters, so the description must carry the burden, and it does: it defines sequenceNumber as 0-based position within a specific list, branchKey/parentStepId as a paired lane selector, splitArms weight semantics (whole percents summing to 100, 50/50 default), enum behaviors for reactionType, conditionType, executionMode and inmailExhaustionBehavior, plus the personalization token syntax. This meaning is well beyond what the schema exposes.

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 precise verb+resource+scope: 'Adds a new sequence step to a campaign at an explicit position', and immediately names the discriminating dimensions (channel, wait days, type, content). This is clearly the creation counterpart to the delete/update/reorder siblings, so an agent can route correctly without opening the 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?

Gives extensive when/when-not guidance: condition and A/B steps only before a campaign starts, nothing can be added after a started campaign that already has a split or condition, and how to build allowedInboxes from list_email_accounts. It never explicitly contrasts itself with update_sequence_step_tool or generate_campaign_sequence_tool, so the when-to-use-vs-alternative is implied rather than stated.

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.