Skip to main content
Glama

Enroll rows in a sequence

enroll_rows
Destructive

Add rows from a sequence's table to the email sequence, skipping missing/invalid emails, unsubscribed addresses, missing variables, or existing enrollment; nothing sends until it starts.

Instructions

Enroll rows from the sequence's table. Skips (and counts) rows with no email, an undeliverable email, an unsubscribed address, a missing template variable, or already enrolled. Enrolling doesn't send anything until 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": {
      "sequence_id": "<sequence_id>"
    },
    "name": "enroll_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
filterNoExact-match filter, e.g. {"email_certainty": "ultra_sure"}
row_idsNo
sequence_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: it enumerates the five skip conditions (no email, undeliverable, unsubscribed, missing template variable, already enrolled) and says skips are counted, plus clarifies that nothing is sent until start. With destructiveHint=true and openWorldHint=true already declared, gaps remain around permission requirements, idempotency of re-enrollment, and what the response looks like.

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?

Three short sentences, front-loaded with the action, then the skip semantics, then the send-timing caveat. No redundant restatement of the title and every sentence carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The skip rules and the no-send-until-start note cover the most important behavioral surprises for a mutation tool with no output schema. However, with a nested filter object and 25% schema coverage, the definition leaves an agent without enough detail about the parameters and result to call it confidently in non-trivial cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% across four parameters, including a nested free-form filter object documented only by a bare example in the schema, so the description must compensate and does not. It never explains what limit caps, what row_ids does relative to filter, or how the two interact, leaving the agent to infer from the schema alone.

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?

States a specific verb (enroll) and resource (rows from the sequence's table), which is enough to separate it from query_rows/update_rows siblings. It also implicitly distinguishes itself from start_sequence by noting that enrolling does not send anything until the sequence is started, though that routing is implied rather than stated by name.

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

Usage Guidelines3/5

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

Usage is only implied: the description tells you what enrolling does and that it is inert until start, which hints at the enroll-then-start workflow. It never says when to choose row_ids versus filter versus limit, nor when an agent should skip this tool in favor of preview_sequence or query_rows first.

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