Skip to main content
Glama

Set sequence steps

set_sequence_steps
Idempotent

Replace all steps of a draft or paused sequence. Returns the sequence. Errors: sequence_active (pause it first), invalid_steps (the steps JSON does not parse), sequence_empty, too_many_steps, invalid_delay, invalid_email_step, invalid_branch (branches jump forward only). Next: activate_sequence.

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_id": "<sequence_id>",
      "steps": "<steps>"
    },
    "name": "set_sequence_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesThe ordered steps. Each is {"kind":"email","subject":"..","preview":"..","doc":{"version":1,"style":"designed","subject":"..","blocks":[{"type":"text","text":"Hi {{FIRST_NAME|there}}"}]}}, {"kind":"delay","days":1} (or "minutes"/"hours"), {"kind":"condition","check":{"kind":"has_tag","tag":"vip"},"on_true":3,"on_false":null} (branches jump forward to a step index) or {"kind":"exit"}.
sequence_idYesSequence id. The sequence must be a draft or paused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile; the description adds the full-replacement semantics, the paused/draft precondition, and a concrete error taxonomy (active sequence, unparseable JSON, empty, too many steps, invalid delay, invalid branch). The branch constraint ("branches jump forward only") is behavioral knowledge an agent would otherwise only learn by failing.

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?

Two sentences, front-loaded with the operation and scope, followed by compact error codes and a next action. The error catalog is dense but each code conveys distinct failure information; no sentence is redundant.

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 two-parameter replacement tool with no output schema, nothing material is missing: it discloses prerequisites, replacement behavior, error conditions, and the follow-up call. The description even notes it returns the sequence, covering the absent output schema.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents step shapes in detail, so the baseline of 3 applies. The description only echoes step-level failure modes (bad JSON, invalid branch) without adding format or syntax meaning beyond 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 and resource: "Replace all steps of a draft or paused sequence", plus names the return value. The draft/paused qualifier and the sibling reference to activate_sequence make it distinguishable from create_sequence, get_sequence, and set_email_design.

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 preconditions (sequence must be draft or paused; "pause it first" on sequence_active) and an explicit next step ("Next: activate_sequence"). It stops short of naming alternatives for editing a single email design or a live sequence, but the when-to-use condition is unambiguous.

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