Skip to main content
Glama

Create a sequence

create_sequence

Create a draft email sequence for a lead table, assigning each lead to one connected mailbox so all steps send in the same thread. Nothing sends until leads are enrolled and the sequence starts.

Instructions

Create a DRAFT email sequence for a table, sent from a pool of one or more connected mailboxes. Each lead is assigned one mailbox and every step comes from it, in the same thread; more mailboxes means more volume per day. Step 1 carries the subject and the follow-ups reply in the same thread. Steps take {{vars}} from the table's columns; rows missing a used variable are skipped at enrollment. A draft sends nothing: no email goes until leads are enrolled and the sequence is started.

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": {
      "table_id": "<table_id>",
      "name": "<name>",
      "mailbox_ids": "<mailbox_ids>",
      "steps": "<steps>"
    },
    "name": "create_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
stepsYes
table_idYes
timezoneNoIANA timezone of the recipients, e.g. Europe/Madrid (default)
assignmentNoHow leads are spread over the mailboxes: capacity (default) gives more to mailboxes that can send more today; even gives each the same number
mailbox_idsYes
window_end_hourNoLocal hour sending stops (default 17)
window_start_hourNoLocal hour sending starts on weekdays (default 9)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description reinforces the non-sending nature while adding real behavioral detail: threading (step 1 carries the subject, follow-ups reply in-thread), mailbox assignment affects daily volume, and rows missing a used variable are skipped at enrollment. It does not disclose permission/auth requirements, validation failures, or limits on steps/mailboxes, so it is not exhaustive.

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?

Three short paragraphs, front-loaded with the core action and followed by mechanics and lifecycle caveats in a sensible order. There is mild redundancy — the thread/subject rule restates the schema's subject description — but no filler sentences.

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 8-parameter creation tool with no output schema, the description covers the core semantics an agent needs: draft-only behavior, mailbox pooling, variable substitution and skipping, and in-thread follow-ups. It leaves out what the call returns (presumably a sequence id) and the maxItems constraints on steps and mailboxes, which are only visible in the schema.

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 roughly 50%, and the description compensates meaningfully: mailbox_ids is explained as a sending pool where each lead draws from a single mailbox and more mailboxes means more volume, and the {{var}} substitution plus skip-on-missing-variable rule explains the table/steps relationship. The name and table_id parameters remain unexplained beyond 'for a table', leaving a small gap.

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?

The first sentence gives a specific verb and resource (create a DRAFT email sequence for a table) plus the scoping detail that sending comes from a pool of connected mailboxes. The closing sentence ('A draft sends nothing: no email goes until leads are enrolled and the sequence is started') cleanly separates this tool from the sending/enrollment siblings without naming them.

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?

The description establishes the lifecycle context — this tool only creates a draft, and sending requires subsequent enrollment and starting — which tells an agent when this tool is the right first step. It stops short of explicitly naming alternatives (e.g. update_sequence for edits, preview_sequence before starting) or stating preconditions such as mailboxes needing to be connected.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.