Skip to main content
Glama

remove_leads_from_list

DestructiveIdempotent

Delete leads from a lead list (get their ids with get_lead_list and include_leads=true). The leads are removed and the list's lead count goes down; this cannot be undone, so confirm with the user before emptying a list. Ids that aren't in the list are ignored without an error, so removed is how many were actually deleted and can be lower than the number of ids sent. Scope: removing a single lead (one id) works with a write key; removing more than one at a time requires an admin-scoped key (a write key gets 403). LIMITS: up to 5000 ids per call. To delete the whole list use delete_lead_list.

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_list_id": "<lead_list_id>",
      "lead_ids": "<lead_ids>"
    },
    "name": "remove_leads_from_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
lead_idsYesIds of the leads to delete (from get_lead_list with include_leads). One id needs only a write key.
lead_list_idYesId of the lead list (from list_lead_lists).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lead_ids / description
      Previous value: -"Ids of the leads (from list_leads_in_list)."New value: +"Ids of the leads to delete (from get_lead_list with include_leads). One id needs only a write key."
  2. 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 idempotentHint=true, and the description adds substantial context beyond that: irreversibility, the requirement to confirm with the user, silent ignoring of unknown ids, a possible mismatch between ids sent and the `removed` count, and key-scope behavior (403 for multi-id deletions with a write key). The 5000-id cap is also disclosed.

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 content is front-loaded and organized with clear 'Scope' and 'LIMITS' labels, and nearly every sentence carries necessary behavioral information. It is dense and slightly long, but not padded or repetitive.

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?

There is no output schema, and the description compensates by explaining the `removed` return value, partial-success semantics, key-scope requirements, and the per-call limit. For a destructive bulk mutation, nothing an agent needs in order to call it safely 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 baseline is 3. The description still adds meaning the schema lacks: the permission split between one id (write key) and multiple ids (admin key), plus the pointer to get_lead_list with include_leads for sourcing ids.

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 ('Delete leads from a lead list') and explicitly differentiates itself from delete_lead_list for whole-list deletion. An agent can route between this tool and the whole-list tool without opening either 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 where to get the ids ('get_lead_list ... include_leads=true'), names the alternative for full deletion ('To delete the whole list use delete_lead_list'), and adds a caution to confirm with the user before emptying a list. When-to-use and when-to-use-something-else are both 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.

Resources