Skip to main content
Glama

Remove many people from a campaign

argorant_remove_campaign_leads
Destructive

Use it for bulk clean ups, such as "remove everyone at amazon.com" or "take out the people tagged competitor". It takes many people out of a campaign at once, chosen by status, reply, bounce, address domain, tag, lead_ids, addresses, a CSV file of ids or addresses (up to 100,000) or a saved list. For one address use argorant_remove_campaign_lead, and to bring people back argorant_restore_campaign_leads. Always call it first with preview=true and tell the user how many would go and how many stay because they already got an email. Those stay unless the user clearly asks to stop them too (include_contacted=true); replies and bounces are never touched. Nobody is deleted, and emails already sent stay in the numbers. Doing it needs confirmed=true after the user's clear yes. More than 2,000 people are taken out in the background, with a job_id for argorant_add_campaign_leads_status. More in the docs at https://docs.argorant.com/docs/agents/tools#campaigns

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

Input Schema

NameRequiredDescriptionDefault
tagNoEveryone who carries this tag (set with argorant_set_lead_custom_fields).
fileNoCSV text of lead ids or email addresses (a header such as id or email is optional), up to 100,000.
emailsNoThe people's email addresses.
statusNopending, queued, active, sent, replied, bounced, unsubscribed, failed or completed.
bouncedNotrue for only the bounced addresses, false for only the others.
domainsNoDomains of the people's addresses.
list_idNoEveryone of this saved list.
previewNoSet it to true to only count, without changing anything.
repliedNotrue for only the people who replied, false for only the ones who did not.
lead_idsNoIds from argorant_list_campaign_leads.
confirmedNotrue only after the user's clear yes to taking these people out
campaign_idYesThe campaign's id, from argorant_list_campaigns.
include_contactedNoAlso stop people who already got an email. Only when the user asks for it.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context beyond them: preview is the default mode and only counts, no lead records are deleted, already-sent emails remain in the numbers, replies and bounces are exempt, and runs over 2,000 people execute in the background returning a job_id for argorant_add_campaign_leads_status. That is exactly the operational detail an agent needs before committing a destructive bulk mutation.

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?

The preview-first safety instruction and the sibling routing come early, and almost every clause carries new information (limits, job_id, exemptions). It is nonetheless a long, somewhat run-on block with informal quoting that could be split into a usage line and a safety line for faster scanning.

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?

For a 13-parameter, destructive, background-capable bulk tool, the definition covers the confirmation gate, the preview requirement, the exemption rules, the background threshold and job_id handoff, plus a docs link. With an output schema present, return values need not be restated, so nothing material 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 100%, so the schema already documents each of the 13 parameters and the baseline is 3. The description goes further by explaining the policy semantics behind preview and confirmed (preview first, confirmed only after the user's explicit yes) and the conditional nature of include_contacted ('unless the user clearly asks'), which the schema alone states as a plain default. It does not add selector precedence or combination rules, so not a 5.

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 names a specific verb and resource ('takes many people out of a campaign at once') and enumerates the selection vectors: status, reply, bounce, domain, tag, lead_ids, addresses, CSV, saved list. It explicitly contrasts with the single-record sibling argorant_remove_campaign_lead and the inverse argorant_restore_campaign_leads, so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It gives concrete when-to-use triggers ('bulk clean ups, such as "remove everyone at amazon.com"'), names the alternative for one-address removal and the restore tool, and states a mandatory workflow: always call with preview=true first, report counts to the user, and only proceed with confirmed=true after a clear yes. It also states the exclusion condition for include_contacted and notes replies and bounces are never touched.

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.