Skip to main content
Glama

leads_bulk_delete

Hard-deletes leads: segment memberships, automation logs and pending campaign state go with them. Irreversible — prefer leads_bulk_archive unless the records are junk (a bad import, test data).

Leads that have ever been emailed are never deleted (reason contacted): that would erase sent mail from campaign history. Archive them instead. Opt-outs are kept regardless — they live in the suppression list, not on the lead.

To delete every lead of a list or a CSV import, use leads_bulk_selection_action with action=delete.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/bulk-delete/

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": {
      "lead_sqids": "<lead_sqids>"
    },
    "name": "leads_bulk_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
lead_sqidsYesLead sqids to delete. For a whole list (e.g. one CSV import) use `leads_bulk_selection_action` with `action=delete`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does it well: it names the destructive cascade, marks itself **Irreversible**, discloses the silent skip rule for previously-emailed leads (reason `contacted`) and explains why, and notes opt-outs survive because they live in the suppression list. That is exactly the material an agent needs before a destructive call.

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?

Front-loaded with the destructive verb and the irreversibility warning before any routing advice, then the two edge-case rules, then the endpoint. Dense and zero waste; the Method line is the only conventional filler and is short.

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 one-parameter destructive tool with no output schema and no annotations, the definition covers consequences, exclusions and alternatives thoroughly. The remaining gap is partial-failure semantics: it does not say whether the batch aborts on skipped leads or returns per-lead reasons, which matters up to the 1000-item cap.

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 description coverage is 100% for the single parameter, so the baseline is 3. The description adds only the cross-reference to leads_bulk_selection_action for bulk-by-list deletion, which the schema description already states verbatim; no syntax or format guidance for the sqids is added.

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 ('hard-deletes leads') plus the cascade scope (segment memberships, automation logs, pending campaign state), and explicitly contrasts itself with leads_bulk_archive and leads_bulk_selection_action. An agent can distinguish this from every nearby sibling without touching 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 Guidelines5/5

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

Gives an explicit when-not ('prefer leads_bulk_archive unless the records are junk'), concrete junk examples (bad import, test data), and a routing rule to leads_bulk_selection_action for whole-list/CSV deletion. The 'Leads that have ever been emailed... Archive them instead' sentence is a second explicit exclusion with its alternative.

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.