Skip to main content
Glama

Write campaign sequence

set_sequence
DestructiveIdempotent

Write the shared email sequence of a MULTI campaign — the emails every lead in it receives, with {{variables}} filled in per lead at send time. THIS REPLACES THE ENTIRE SEQUENCE: any step you leave out is deleted. Call get_sequence first and resend the existing steps unless the user asked to start over. Does not apply to 'single' campaigns, which use generate_lead_sequence per lead. Nothing is sent — the campaign still has to be launched, and that stays with the user.

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": {
      "campaign_id": "<campaign_id>",
      "steps": "<steps>"
    },
    "name": "set_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesTHE COMPLETE SEQUENCE. This REPLACES every email currently on the campaign — steps you leave out are deleted. Call get_sequence first and include the existing steps unless the user asked to start over. Each step: step_number (0-based, so the first email is 0), subject, body, delay_minutes (how long to wait after the previous step, 1 to 43200), and condition ('no_reply' to skip the step once the lead has replied, which is the default, or 'always'). subject and body may contain {{variables}} such as {{client_name}} or {{company}}, filled in per lead at send time.
campaign_idYesThe MULTI campaign to write. Single campaigns have no shared sequence — use generate_lead_sequence per lead instead.
idempotency_keyNoOptional. Send the SAME value when retrying a call you are unsure completed. Omit it and identical calls within a minute are collapsed.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, but the description goes further by naming exactly what is destroyed: the entire sequence is replaced and any omitted step is deleted. It also discloses the variable-substitution behavior at send time and the fact that no email is dispatched, which are not in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, each carrying a distinct load: what it writes, what it replaces, the get_sequence prerequisite, the single-campaign exclusion, and the launch boundary. The destructive warning is front-loaded in caps before any secondary detail.

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 destructive three-parameter write tool with no output schema, the description covers replacement semantics, prerequisites, the alternative for single campaigns, and the fact that nothing is sent. There is no material gap an agent would need filled before calling it correctly.

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 100%, so the baseline is 3, but the description adds real meaning: subject and body support {{variables}} filled per lead at send time, and it clarifies that 'steps' must be the complete sequence rather than a delta. It does not add much beyond the schema on idempotency_key or delay semantics, which the schema already documents thoroughly.

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: writing the shared email sequence of a MULTI campaign, with the scope qualifier that it is what every lead receives. It explicitly contrasts itself with generate_lead_sequence for 'single' campaigns, so the agent can separate it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit prerequisite (call get_sequence first and resend existing steps unless the user asked to start over) and an explicit exclusion (does not apply to single campaigns, which use generate_lead_sequence per lead). It also states the handoff boundary: nothing is sent, launching stays with the user.

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