Skip to main content
Glama

leads_delete

Hard-deletes the lead, removes it from all segments, and cancels any pending messages. Irreversible — prefer setting status to ARCHIVED. A lead that has ever been emailed cannot be deleted (400): that would erase sent mail from campaign history; archive it instead. Many leads at once: leads_bulk_delete.

Method: DELETE /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/

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": {
      "sqid": "<sqid>"
    },
    "name": "leads_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

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 provided, the description carries the full burden and does so: it discloses irreversibility, the cascading side effects (segment membership removal, pending message cancellation), and the specific 400 failure mode with its rationale. This is exactly the behavioral context an agent needs before invoking an unrecoverable mutation.

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?

Four short sentences plus a path line, front-loaded with the destructive action and its consequences, then the alternative, then the constraint, then the bulk sibling. No hedging or filler; each sentence does distinct work.

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 single-parameter destructive tool with no annotations and no output schema, the description covers consequences, failure conditions, and alternatives thoroughly. The only residual gap is what a successful delete returns, which is minor given there is no output schema to lean on.

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?

There is a single parameter `sqid` at 0% schema description coverage, so the schema explains nothing. The description partially compensates by embedding the route template 'DELETE /api/v1/workspaces/{workspace_sqid}/leads/{sqid}', which implies `sqid` is the lead identifier, but it never states format, source, or how to obtain it.

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 opens with a specific verb and resource ('Hard-deletes the lead') and immediately enumerates the side effects (removes from all segments, cancels pending messages). It explicitly distinguishes itself from the bulk sibling `leads_bulk_delete` and from the safer archive path, so an agent can identify it 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 states when to prefer the alternative ('prefer setting status to ARCHIVED') and names the bulk alternative for many leads. It also gives a concrete precondition that blocks use: 'A lead that has ever been emailed cannot be deleted (400)' with the remedy spelled out. When-to-use, when-not-to-use, and alternatives are all explicit.

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.