Skip to main content
Glama

Enroll contacts into a campaign

enroll_campaign_contacts
Destructive

Add contacts to a scheduled, running or paused campaign (at most 10,000 per call): they join the campaign's own contact list and its queue in one step and are called inside their calling hours. Idempotent: a contact already in the queue is not added again. Refused when the campaign is a draft, completed or cancelled, or when the audience with these contacts would need review (for example a new destination country).

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>",
      "contacts": "<contacts>"
    },
    "name": "enroll_campaign_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
contactsYes
campaign_idYes
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior1/5

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

The description explicitly says "Idempotent: a contact already in the queue is not added again," while the annotations declare idempotentHint=false. That is a direct contradiction. The description also frames the operation as purely additive and does not explain the destructiveHint=true classification.

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 tightly written sentences front-load the action, the limits, the idempotency claim, and the refusal conditions. There is no filler, and the parenthetical limit is placed where it is immediately useful.

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?

For a mutating bulk-enrollment tool with no output schema, the description covers eligibility, limits, idempotency, and refusal conditions well. It still omits the contact object shape and partial-failure behavior, but the remaining gaps are relatively narrow.

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 description coverage is only 33%, with campaign_id and the contacts array undocumented in the schema. The description adds the 10,000-contact call limit and some queue semantics, but it never explains the structure of each contact object, which is the most important missing parameter detail.

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?

The description gives a specific verb and resource ("Add contacts to a scheduled, running or paused campaign") and distinguishes the operation from generic contact addition by explaining that contacts join the campaign's contact list and queue. The eligible campaign states and the per-call limit make the scope unmistakable.

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?

It clearly states the campaign statuses in which enrollment is allowed and lists the conditions under which the call is refused (draft, completed, cancelled, audience review). It does not explicitly name an alternative sibling tool such as add_contacts or explain when that tool would be preferred, so guidance is strong but not fully complete.

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