Skip to main content
Glama

Enrol prospects in a campaign

enrol_prospects
Idempotent

Enrol existing prospects (by prospect_ids or by emails, one of the two, up to 200) into a draft or active campaign, with the same per-person rules as Add prospects in the app: already enrolled, suppressed, active in another campaign and missing snippet fields are skipped and reported per person. Returns 200 with a per-item result and a summary even when nobody was enrolled; 404 for an unknown campaign; 409 when the campaign cannot take prospects in its state. Use when the user wants people who are already in anymail added to a campaign.

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": {
      "id": "<id>"
    },
    "name": "enrol_prospects"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCampaign id (uuid).
emailsNoProspect emails to enrol (must already exist in the workspace).
prospect_idsNoProspect ids to enrol.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by listing the per-person skip rules (already enrolled, suppressed, active in another campaign, missing snippet fields), promising a per-item result plus summary even when nothing is enrolled, and enumerating 404 and 409 failure modes. This is consistent with readOnlyHint=false and idempotentHint=true and adds real operational context annotations cannot express.

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 sentences, front-loaded with the action and then progressively adding rules, error codes, and the when-to-use cue; nothing is filler. The first sentence is long and would read better split, which keeps it from a 5.

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?

With no output schema, the description carries the return contract and does so precisely: 200 with per-item results and a summary regardless of enrolment count, 404 for unknown campaign, 409 for invalid campaign state. Combined with the skip semantics and input constraints, an agent has everything needed to call this 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 baseline would be 3, but the description adds the mutual-exclusivity rule ("by prospect_ids or by emails, one of the two") and the 200 cap as a combined constraint, which the flat schema does not express via oneOf or anyOf. That is genuine meaning beyond the schema, though it does not elaborate on id or email format.

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) and resource (existing prospects) plus the destination (a draft or active campaign), and the closing sentence "people who are already in anymail" explicitly separates it from prospect-creation tools in the sibling list. An agent can tell what it does without opening the schema.

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?

"Use when the user wants people who are already in anymail added to a campaign" gives a clear triggering condition, and "draft or active campaign" plus "one of the two, up to 200" bounds the invocation. It never names the alternative tool (e.g. create_prospect) for people who don't yet exist, so the exclusion is only implied.

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.