Skip to main content
Glama

steps_reorder

Pass every step sqid of the sequence once, in the new order; they get order 0, 1, 2 … in one transaction. delay_days is not touched — it stays the wait after whatever step now precedes it.

On a sequence a live campaign uses: a lead only advances to the step after the one it is on, so a step moved in front of a lead's current position is never run for that lead (e.g. an API step placed before email 1 is skipped by leads already mailed); leads that have not reached it get the new order.

Method: POST /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/reorder/

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": {
      "sequence_sqid": "<sequence_sqid>",
      "ordered_sqids": "<ordered_sqids>"
    },
    "name": "steps_reorder"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results to return per page.
offsetNoThe initial index from which to return the results.
ordered_sqidsYes
sequence_sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the atomic single-transaction behavior, that `delay_days` is preserved and reinterpreted relative to the new predecessor, and the non-obvious live-campaign consequence that leads never move backward. It omits permission/auth requirements, what happens if the sqid list is incomplete or contains foreign steps, and any error behavior.

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 contract, then the operational caveat, then the HTTP method. Every sentence carries information; the `Method:` line is slightly extraneous but adds path shape the schema does not express.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an unannotated, no-output-schema mutation tool this is nearly complete: it explains the transaction, the ordering outcome, and the campaign-live edge case. Remaining gaps are permission prerequisites and validation failures, which matter for a destructive reorder call.

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 50% — `limit` and `offset` are documented in the schema, while `ordered_sqids` and `sequence_sqid` are not. The description compensates well for `ordered_sqids` by specifying it must contain every step exactly once and defining the resulting order values, but it never mentions `limit`/`offset` or why a reorder endpoint would accept them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: reorder sequence steps by passing every step sqid once in the new order, with resulting `order` values 0, 1, 2. The full-replacement semantics implicitly separate it from a partial per-step update, though it never names a sibling such as `steps_update` explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real context for when this matters — a live campaign's lead advancement — and warns about steps moved in front of a lead's current position. It stops short of saying when to use this versus `steps_update` (e.g. single-step changes) or whether reordering is allowed on paused vs active sequences.

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.