Skip to main content
Glama

steps_update

Partial update — only send the fields you want to change. See steps_create for template syntax reference including filters like ${field|title}, ${field|truncatechars:60}, and ${field|intcomma}.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/

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>",
      "sqid": "<sqid>"
    },
    "name": "steps_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoShort human label for this step (e.g. 'First touch', 'Bump 1'). Visible only in the UI; not rendered in messages.
sqidYes
orderNoPosition in the sequence (0-indexed). Auto-assigned if omitted.
channelNoStep type. 0 = email (almost always). 4 = API: calls an external system through an AnyAPI integration profile (`action_config`) instead of sending a message, then the lead moves on. 5 = manual: a person does it — the lead waits on the Tasks list (`action_items_list`) with `description` as the instructions until someone marks it done (`campaigns_action_mark_done`); the next step, e.g. an email, does not start before that. 1-3 (call, LinkedIn, other) are reserved — don't use yet. * `0` - Email * `1` - Call * `2` - LinkedIn * `3` - Other * `4` - API * `5` - Manual
delay_daysNoDays to wait after the previous step was sent (or, for an API step, completed) before running this one. Use 0 for the first step. Typical cadence: 0, 3, 7, 12, 21. If sending is delayed, the next step's timer starts from the actual date. **API step pacing:** an email at 0 days right after an API step makes that API step run just before the send, limited by mailbox send capacity (see `is_send_coupled`); with any other delay the API step runs as soon as it is due, unthrottled — use that for actions between emails.
descriptionNoWhat this step is for. Required on a manual step (channel 5): the instructions shown on the Tasks list, with lead variables such as ${first_name} filled in.
action_configNoAPI steps only (channel 4): the AnyAPI config, same shape as an `anyapi` automation's config — `profile_sqid` (from `workspaces_enrichment_profiles_list`), `settings`, `input_mapping` ({profile input: lead field}), `output_mapping` ({profile output: context field}) and optional `required_outputs` (profile outputs that must come back non-empty, else the step fails). Profile templates can use `{{run.key}}` — stable across retries of the same lead's step — as an Idempotency-Key. Credentials read back as `********`; send that value back unchanged to keep the stored one. Must be empty on email steps.
sequence_sqidYes
message_templateNoEmail body (plain text). Same template syntax as subject (${var}, ${var|filter}, {{prompt}}, {a|b|c}). Available filters: title, lower, upper, truncatechars:N, intcomma, intword, ordinal, apnumber, rstrip_punct. Best practice: 4–6 short sentences, one ask, no images or tracking pixels, no links in the signature. Keep {unsubscribe_link} in the footer when targeting EU/Canada.
subject_templateNoEmail subject line. Supports ${var} lead-field substitution (with filters: ${var|title}, ${var|intcomma}, ${var|truncatechars:40}), {{prompt}} AI snippets, and {a|b|c} spintax. Subjects perform best when they read like human replies: under 8 words, no marketing language, no emoji.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses only the PATCH/partial-update semantics; there is no mention of side effects on active enrollments, what happens when channel is switched (e.g. manual vs API vs email field requirements), whether edits are reversible, or permission requirements.

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 short sentences with the partial-update rule front-loaded and the template pointer secondary; the trailing 'Method: PATCH ...' line is mild boilerplate but useful for endpoint identification. No wasted prose.

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

Completeness2/5

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

A 10-parameter mutation tool with no annotations and no output schema, in a domain with conditional field requirements (description required for channel 5, action_config only for channel 4, empty otherwise). Given that complexity, the description is too thin and leaves the agent to infer the risky interactions from the schema alone.

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 description coverage is 80%, so the schema already documents most fields in depth. The description's only parameter-relevant contribution is pointing at steps_create for template filter syntax used in subject_template/message_template; it adds nothing about order, channel, delay_days, or action_config.

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?

States 'Partial update' and the PATCH path /workspaces/{workspace_sqid}/sequences/{sequence_sqid}/steps/{sqid}/, which identifies the resource (a sequence step) clearly enough to separate it from creation. The differentiation from steps_create is implied only by 'Partial update' versus the reference to steps_create for templates.

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?

Explains the core usage pattern for partial updates ('only send the fields you want to change') and routes template syntax questions to steps_create. It never says when to use this versus steps_reorder or steps_create for structural changes, nor any precondition such as the sequence being in a particular state.

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.