Skip to main content
Glama

leads_bulk_archive

Sets the selected leads to ARCHIVED — the "stop contacting this person, but keep the record" state.

Any lead still live in a campaign has that campaign cancelled for it first: pending messages are cancelled and the CampaignLog rows are retired. Sends that already went out keep their status so campaign reporting is unaffected.

Validation is per-lead: ineligible leads are returned in skipped with a stable reason code instead of failing the request. unsubscribed leads are never archived — that is a legal opt-out, and ARCHIVED can be reset back to NEW, which would launder the opt-out away.

Archiving is reversible via leads_bulk_reset_to_new, which accepts ARCHIVED leads and returns them to NEW.

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

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_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
lead_sqidsYesLead sqids to archive. Any campaign still running at a lead is cancelled for that lead first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the campaign-cancellation side effect, that pending messages are cancelled and CampaignLog rows retired, that already-sent messages retain status so reporting is unaffected, and that archiving is reversible. It omits permissions/auth requirements and the overall response shape beyond the `skipped` array.

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 definition followed by side effects, validation, and reversal in a logical order; the closing HTTP method line is useful for agents. A few clauses (e.g., the detailed restatement of campaign log retirement) could be trimmed without losing 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 an unannotated bulk mutation with no output schema, this covers the important behaviors: state transition, cascading cancellations, partial-failure semantics with reason codes, and irreversibility caveats around opt-outs. Auth requirements and the full return payload remain undocumented, which keeps it short of complete.

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 100% and the sole parameter's schema description already mentions the campaign-cancellation side effect, so the prose largely restates structured data. The 1,000-item cap in the schema is not addressed in the description, so no meaning is added beyond 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+resource (`leads_bulk_archive`) and immediately defines the resulting state as ARCHIVED, glossed as "stop contacting this person, but keep the record." That gloss separates it from a destructive sibling such as leads_bulk_delete without needing to name it.

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 clear operating context: per-lead validation, ineligible leads returned in `skipped` rather than failing the whole request, and an explicit exclusion (`unsubscribed` leads are never archived, with the legal reasoning). It also names the reversal path, leads_bulk_reset_to_new. It stops short of an explicit routing rule such as "to permanently remove, use the delete tool instead."

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.