Skip to main content
Glama

steps_create

A step is one email in a sequence. Key fields:

  • delay_days — how many days after the previous step this one fires. For the first step use 0.

  • subject_template and message_template — text with ${var} / {{prompt}} / {a|b} placeholders.

  • channel — almost always 0 (email).

API steps (channel=4) call an external system instead of sending an email: set action_config to an AnyAPI config (profile + mappings, see the field) and leave the templates empty. On success the profile's outputs are written to the lead's context fields and the lead moves on; on failure only that lead waits (status 15 in campaigns_step_logs, listed in action_items_list) and the rest of the campaign keeps going. Pacing: followed by an email at delay_days=0, the API step runs right before the send and is limited by mailbox capacity; otherwise it runs as soon as it is due. Check a new step with steps_test_run (a real call) before activating.

Template filters transform field values inline:

  • ${field|title} — Title Case (use on names from discovery data)

  • ${field|lower}, ${field|upper} — case conversion

  • ${field|truncatechars:60} — truncate with ellipsis

  • ${field|intcomma} — thousands separator (94491 → 94,491)

  • ${field|intword} — human-readable (1000000 → 1.0 million)

  • ${field|ordinal} — ordinal suffix (1 → 1st, 3 → 3rd)

  • ${field|apnumber} — spell out 1-9 (3 → three)

  • ${field|rstrip_punct} — strip trailing .,;:!? Chain filters: ${field|lower|title}. Combine with default: ${field:fallback|title}.

Typical step cadence: 0 → 3 → 7 → 14 → 30 days. Don't pack steps within 24h — recipients interpret it as aggressive.

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

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

Input Schema

NameRequiredDescriptionDefault
nameYesShort human label for this step (e.g. 'First touch', 'Bump 1'). Visible only in the UI; not rendered in messages.
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

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does well on mutation semantics: API-step failure isolates only the failing lead (status 15, action_items_list), pacing depends on a following 0-day email, and credentials read back as ******** to be returned unchanged. It does not disclose permissions needed or what a successful create returns, leaving the response/authorization profile undocumented.

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 'Key fields:' and organized into scannable bullets, but the extended filter catalog and multiple emphatic sections are verbose, and the filter enumeration repeats what the schema parameters already state. The API-step and template sections compete for attention rather than being tightly prioritized.

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 a 9-parameter mutation tool with no annotations and no output schema, the description is fairly complete on email and API steps, pacing, and failure semantics. Gaps remain: it never mentions channel 5 (manual) steps despite the schema detailing them, and it does not describe the created object or auth requirements.

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 high (89%) so the baseline is 3, but the description adds real meaning: 'first step use 0' for delay_days, cadence examples, action_config wiring for API steps, and the note that channel is almost always 0. The template-filter list largely duplicates what the schema already documents, which tempers the added value.

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 frames the resource well ('A step is one email in a sequence') and the Method line (POST .../steps/) plus the required fields make clear this creates a step. It never states 'creates a step' as a verb explicitly, so an agent infers creation from the endpoint and field list rather than reading a direct purpose statement.

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?

Offers concrete usage context: use delay_days=0 for the first step, a typical cadence of 0→3→7→14→30, don't pack steps within 24h, and verify via steps_test_run before activating. It does not distinguish when to use steps_create versus steps_update or steps_reorder, so sibling routing is left implicit.

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.