Skip to main content
Glama

MailBeast.ai

Add leads to a campaign

add_leads
Destructive

Add 1-100 leads to a campaign (call again for more). Each is deduplicated by email within the campaign; malformed addresses are counted as invalid. Set skipIfInOtherCampaigns to also skip emails already in another campaign (counted as inOtherCampaigns). Emails that would be new contacts beyond the fair use of contact storage are skipped and counted as overStorageLimit. A person who already exists in Contacts is added too; mode decides their details, which all their campaigns share: fill_empty (default) fills only empty fields, overwrite replaces fields with the values sent, skip leaves them. An empty value never erases a field, and tags are always added to the person's (never removed).

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

Input Schema

NameRequiredDescriptionDefault
modeNo
leadsYes
campaignIdYesCampaign id (UUID).
skipIfInOtherCampaignsNoSkip emails that already exist in another campaign of the workspace. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / mode
      Added value: +{
      +  "enum": [
      +    "fill_empty",
      +    "overwrite",
      +    "skip"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / skipIfInOtherCampaigns
      Added value: +{
      +  "description": "Skip emails that already exist in another campaign of the workspace. Default false.",
      +  "type": "boolean"
      +}
  2. 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 (readOnlyHint=false, destructiveHint=true, idempotentHint=false), disclosing deduplication key (email, per campaign), the failure/outcome buckets (invalid, inOtherCampaigns, overStorageLimit), and non-obvious mutation rules such as empty values never erasing fields and tags being additive only. This is exactly the kind of consequence detail an agent needs before a destructive write; nothing here contradicts the annotations.

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-loaded with the core action and batch limit, then consequences in descending importance; essentially no filler. It is a single dense paragraph of backticked terms, which is efficient but slightly harder to scan than a lightly structured version.

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 destructive, non-idempotent mutation with no output schema, the description covers counting outcomes, dedup rules, storage limits, and overwrite semantics — everything an agent needs to predict the effect and interpret results without a return schema.

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?

With 50% schema description coverage, the description supplies the missing meaning for `mode` (fill_empty default, overwrite, skip) and ties it to the shared-person record model, and explains the semantics of tags and of skipIfInOtherCampaigns beyond its schema note. It says nothing about the per-lead fields or customFields, which remain schema-only, keeping it below 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?

States a specific verb and resource ('Add ... leads to a campaign') plus the batch bound (1-100), which is exactly what distinguishes this from sibling mutations like delete_leads or bulk_add_lead_tags. An agent can identify the operation and its scope 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?

Gives concrete usage context: 'call again for more' for batches over 100, and conditions for the two optional behaviors (skipIfInOtherCampaigns, mode). It does not name an alternative tool or state when this should not be used, but the applicable context is unambiguous.

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