Skip to main content
Glama

add_contacts_to_campaign_tool

Destructive

Adds specific saved contacts, by CRM contact id (1-60 per call), straight into an ACTIVE campaign, without adding them to any of its lists, and starts its sequence for the ones added: each gets its first email or LinkedIn action from the user's connected accounts, over as many sending days as their daily limits need, and AI writing in those messages is charged in credits as each message is written. With enrichMissingContactData, contacts without a valid work email are first looked up, charged in credits for each email found. Answers one outcome per contact: added, already_in_campaign, missing_valid_email (the campaign sends email and the contact has no valid work email), missing_linkedin (the campaign has LinkedIn steps and the contact has no LinkedIn URL), contact_not_found or enrolment_failed. Refused with CAMPAIGN_NOT_ACTIVE for a campaign that is not active (a draft or a paused one), NO_ACTIVE_EMAIL_ACCOUNTS or NO_ACTIVE_LINKEDIN_ACCOUNTS when no sending account is active for a channel the campaign uses, and CAMPAIGN_LIST_FULL when the campaign holds as many contacts as it can.

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": {
      "campaignId": "<campaignId>",
      "contactIds": "<contactIds>"
    },
    "name": "add_contacts_to_campaign_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYesThe campaign to add the contacts to; it must be active.
contactIdsYesCRM contact ids (24 hex) of the people to add: 1 to 60, each once.
enrichMissingContactDataNoWhen the campaign sends email, first run an email enrichment for each contact without a valid work email, as the app's Add to Campaign does (charged at the enrichment price, only when an email is found). Left false, those contacts are not added and come back as missing_valid_email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations by disclosing what actually happens: contacts are enrolled and their sequence starts, sending spreads over days per daily limits, AI writing and enrichment consume credits, and enrichment charges only when an email is found. It also enumerates the full failure surface (CAMPAIGN_NOT_ACTIVE, NO_ACTIVE_EMAIL_ACCOUNTS, NO_ACTIVE_LINKEDIN_ACCOUNTS, CAMPAIGN_LIST_FULL), which is consistent with destructiveHint=true and openWorldHint=true.

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?

The primary action and its key constraint (active campaign, not via lists) are front-loaded, followed by side effects, then per-contact outcomes, then refusal codes. Dense but every sentence carries unique information; there is no repetition of schema or annotation content.

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 compensates by enumerating every per-contact outcome value and every campaign-level refusal code, so an agent can both interpret results and predict failures. Nothing material about calling this mutation tool correctly is missing.

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 already 100%, so this is above baseline credit: the description ties enrichMissingContactData to a concrete downstream outcome (missing_valid_email vs. enrichment) and to credit billing, meaning an agent understands the cost/behavior trade-off of flipping the flag, not just its type.

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 and resource (adds saved CRM contacts by id into an ACTIVE campaign) and immediately scopes it against the list-based path: 'without adding them to any of its lists'. An agent can distinguish this from add_list_to_campaign_tool without opening either 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?

Gives clear conditions: the campaign must be active (drafts/paused refused with CAMPAIGN_NOT_ACTIVE), 1-60 ids per call, and explains the enrichMissingContactData decision point versus letting contacts come back as missing_valid_email. It stops short of explicitly naming a sibling tool to use for the alternative path, so the contrast with list-based adding is implied rather than spelled out.

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.