Skip to main content
Glama

MailBeast.ai

Delete leads

delete_leads
DestructiveIdempotent

Delete leads from a campaign, selected by EXACTLY ONE of: ids (up to 1000), filter (search / status / tags, at least one non-empty), or all: true (every lead of the campaign). Leads an email already went to are never deleted: they stay in the campaign with their history and are reported in errors.

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

Input Schema

NameRequiredDescriptionDefault
allNoDelete EVERY lead of the campaign.
idsNo
filterNo
campaignIdYesCampaign id (UUID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered; the description adds genuinely new behavioral detail: leads that already received an email are never deleted, remain in the campaign with history, and are surfaced in `errors`. It doesn't address permissions or whether the operation is reversible beyond what destructiveHint implies.

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?

Two sentences, zero filler, with the selection constraint front-loaded and the exception rule ('leads an email already went to are never deleted') following immediately. Every clause carries decision-relevant information.

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 destructive bulk-mutation tool with no output schema, the description covers selection modes, partial-failure semantics, and error reporting, which is most of what an agent needs. It omits anything about required permissions or campaign-state preconditions, a modest gap given 50% schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%, and the description contributes real cross-field semantics the schema cannot express: exactly-one-of between ids/filter/all, and the non-empty filter requirement. However, the 'up to 1000' bound merely repeats maxItems=1000, and the individual filter fields (search/tags/status) and their semantics are left to the schema.

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 ('Delete leads from a campaign') plus the three mutually exclusive selection modes, which cleanly separates it from siblings like delete_campaign, delete_contact, and the bulk_* tag/status tools that act on leads but don't remove them.

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?

The 'EXACTLY ONE of ids / filter / all:true' clause tells the agent precisely how to choose an invocation mode, and the 'at least one non-empty' rule for filter prevents an empty filter call. It does not explicitly name an alternative tool or state when to avoid deleting (e.g., prefer bulk_set_lead_status for status changes), so it stops short of full when/when-not routing.

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