Skip to main content
Glama

Sergio by Serviche

Add chosen contacts to a campaign

add_contacts_to_campaign
Idempotent

Adds the people you picked to a campaign, as Add to campaign on the Contacts page does, a draft included: each is checked against the campaign's safety rules and the answer names who was added, who was skipped and why. People added to a draft are counted in start_campaign's preview and get their first message when it starts; nothing is sent by adding (on a started campaign a step due today is drafted, never sent). confirmOverCap: true only when your person accepts going over today's cap (the answer says over_daily_cap with the numbers otherwise). Pass the same idempotency_key when retrying; a repeat adds nobody twice.

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>",
      "clientIds": "<clientIds>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "add_contacts_to_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientIdsYes
campaign_idYes
confirmOverCapNo
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / preview
      Removed value: -{
      -  "type": "boolean"
      -}
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: each contact is validated against campaign safety rules, the response reports who was added, who was skipped and why, and an over_daily_cap outcome with numbers is named. It also clarifies the non-obvious side-effect boundary – nothing is sent on add, and on a started campaign a step due today is only drafted – which is exactly the kind of context annotations cannot convey.

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 purpose in the first clause, then layers draft behavior, safety checks, cap handling, and retry semantics. It is dense but nearly every clause carries operational information; the heavy parenthetical nesting makes it slightly harder to scan than it could be.

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 takes on return-value duty and does so by describing the per-contact added/skipped/why report and the over_daily_cap shape. For a mutating, idempotent, 4-parameter tool this is close to complete; the only missing piece is the batch size limit on clientIds.

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 description coverage is only 25% (just idempotency_key), so the description must compensate, and it does for the two risky parameters: confirmOverCap's meaning and the over_daily_cap alternative outcome, plus idempotency_key reuse semantics. clientIds and campaign_id remain implicit, and the 100-item batch cap is unmentioned, leaving a small gap.

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 and resource ('Adds the people you picked to a campaign') and anchors it to a known UI action ('as Add to campaign on the Contacts page does'), so the intended effect is unambiguous. It does not distinguish itself from plausibly overlapping siblings such as include_campaign_recipients or exclude_campaign_recipients, which keeps it from a 5.

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?

Gives clear situational guidance: works on drafts too, drafts are counted in start_campaign's preview, and confirmOverCap should be true 'only when your person accepts going over today's cap'. Retry guidance is explicit ('Pass the same idempotency_key when retrying'). No exclusions against named sibling tools, so not a 5.

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