Skip to main content
Glama

reorder_sequence_steps_tool

Destructive

Reorders the steps of one list of a campaign's sequence. Pass the complete list of that list's sequenceStepIds in the new order: the root list by default, or a lane when parentStepId (the condition step's id) and branchKey ('yes' or 'no'; the arm 'a' or 'b' of an A/B split) are given. A condition step must stay the last step of its list. In the root list the new first step's wait is set to 0 days and a step moved out of first place gets a 3-day wait; other steps keep their waits. Once a campaign with a condition or A/B split has started, its steps cannot be reordered; on a started campaign without them, contacts still in the sequence get their remaining steps in the new order.

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>",
      "sequenceStepIds": "<sequenceStepIds>"
    },
    "name": "reorder_sequence_steps_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
campaignIdYes
parentStepIdNoThe condition step whose lane this list is. Omit (or null) for the root list. Sent together with branchKey.
sequenceStepIdsYesEvery step of one list (the root list, or the lane named by parentStepId + branchKey), in the new order, each once.

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 already flag destructiveHint=true and openWorldHint=true, but the description goes well beyond them: it discloses the wait-time side effects (new first step set to 0 days, a step moved out of first place gets a 3-day wait, others unchanged) and the effect on in-flight contacts in a started campaign. These are non-obvious mutation consequences an agent could not infer from the schema or annotations.

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-loaded with the core action, then layered with lane selection, constraints, and side effects. Dense but every sentence carries operational information; the long compound sentences slightly reduce scannability but nothing is wasted.

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 destructive, no-output-schema mutation tool, the description covers the required inputs, the root/lane branching, the ordering constraint, the wait-time side effects, and the started-campaign limitation. An agent has everything needed to call it correctly and understand the consequences.

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 75% and the description reinforces the key semantics: sequenceStepIds must be the complete list in the new order, parentStepId is the condition step's id, and branchKey selects 'yes'/'no' or the 'a'/'b' arm. It adds meaning beyond the schema by tying these parameters to the root-vs-lane distinction, though campaignId remains unexplained in both places.

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 and resource: 'Reorders the steps of one list of a campaign's sequence.' It immediately scopes the operation to a single list and distinguishes itself from siblings like update_sequence_step or reorder_list_columns_tool by naming the exact object being reordered.

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 when-to-use context: root list by default, or a lane when parentStepId and branchKey are supplied. It also states explicit when-not conditions ('Once a campaign with a condition or A/B split has started, its steps cannot be reordered') and a hard constraint (a condition step must stay last). It does not name an alternative tool, which keeps it from 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.