Skip to main content
Glama

Enroll contact in sequence

enroll_contact_in_sequence

Enrol one contact in an active sequence now. Returns the enrolment {id, status, current_position, next_run_at}. Errors: sequence_not_active, contact_not_found, contact_not_mailable (unsubscribed or suppressed), already_enrolled, reenroll_not_allowed (pass force), invalid_enroll_target (give contact_id or email). Next: get_sequence to watch enrolment counts.

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_id": "<sequence_id>"
    },
    "name": "enroll_contact_in_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoContact email address. Give this or contact_id.
forceNoEnrol again even if the contact already went through the sequence. Never overrides an active enrolment.
contact_idNoContact id, such as "ctc_01j9...". Give this or email.
sequence_idYesSequence id. The sequence must be active.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With readOnlyHint=false and destructiveHint=false already signaling a safe-but-non-idempotent write, the description still adds substantial context: the exact return shape {id, status, current_position, next_run_at}, the full enumeration of failure modes, and the nuance that force never overrides an active enrollment. That last detail is genuine behavioral disclosure not derivable from 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?

Front-loaded with the action and its precondition, then return shape, then errors, then a next step — a tight operational ordering with zero filler. The parenthetical glosses ("pass force", "give contact_id or email") earn their space by making errors actionable.

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?

No output schema exists, yet the description compensates by naming the returned fields. For a single-object mutation with four well-documented parameters, the combination of return shape, complete error taxonomy, and a follow-up pointer leaves nothing an agent needs to call it correctly.

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 100% and the schema already documents every parameter, including "Never overrides an active enrolment" on force — which the description only implies through the reenroll_not_allowed error. The description reinforces parameter meaning via error codes but adds no syntax or format detail the schema lacks, so the baseline 3 applies.

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 ("Enrol"), a bounded scope ("one contact"), and a precondition ("in an active sequence now"), which immediately distinguishes it from sequence-management siblings like activate_sequence or set_sequence_steps. An agent can tell exactly what action is performed and on what resource.

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 error-driven guidance is unusually actionable: reenroll_not_allowed points to the force parameter, invalid_enroll_target points to supplying contact_id or email, and it names the follow-up call (get_sequence). It never explicitly states when to prefer this over alternatives, but no sibling in the list performs enrollment, so the omission is minor.

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.