Skip to main content
Glama

Enroll contacts in a sequence

enroll_in_sequence
Destructive

Enroll a SEGMENT of subscribed contacts in a drip sequence: those carrying the given tags, or every subscriber of that account if no tag is given. Contacts who unsubscribed are never enrolled, and a sequence always stops for anyone who unsubscribes. Call it first without confirm to get how many contacts would be enrolled; they start receiving its steps as soon as you call it with confirm: true, after the user agreed.

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": {
      "sequenceId": "<sequenceId>"
    },
    "name": "enroll_in_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOnly contacts with these tags. Omit to enrol every subscriber.
confirmNotrue ONLY after the user saw how many contacts will be enrolled and agreed. Without it nothing is sent: you get that number.
sequenceIdYes
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "true ONLY after the user saw how many contacts will be enrolled and agreed. Without it nothing is sent: you get that number.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / subscribedOnly
      Removed value: -{
      -  "description": "Exclude contacts who unsubscribed (default true).",
      -  "type": "boolean"
      -}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well past the annotations by disclosing the two-phase preview/commit behavior, the exact condition under which messages start sending, and the durable unsubscribe rule. Annotations already flag destructiveHint=true and idempotentHint=false, and the description is consistent with both while adding what is actually mutated. It does not explain retry safety or rate limits directly in prose, relying on the idempotencyKey schema text for that.

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?

Front-loads the audience definition, then the safety gate, then the unsubscribe invariant, all in three dense sentences with no filler. Slightly packed into one paragraph, and the confirm instructions are repeated in the schema, but nothing is wasted.

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?

With no output schema, the description correctly tells the agent what an unconfirmed call returns (the count that would be enrolled). Combined with the schema's idempotencyKey text, an agent has enough to invoke it safely; only retry/error behavior is left implicit.

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 75%, so tags, confirm and idempotencyKey already carry their own descriptions. The prose reinforces the consequence-level meaning of tags (omit to target every subscriber) and of confirm (nothing is sent without it), but adds little interpretive detail beyond what the schema fields already say.

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 ('Enroll a SEGMENT of subscribed contacts in a drip sequence') and pins down the target population: contacts carrying the given tags, or every subscriber if no tag is given. The enrollment direction is unambiguous, so an agent can tell this apart from unenroll_from_sequence or activate_sequence without opening any 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 call protocol: first call without confirm to learn the audience size, then call with confirm: true only after the user agreed. It also states the condition that selects the broad path (omit tags = all subscribers) and the exclusion rule (unsubscribed contacts are never enrolled).

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