Skip to main content
Glama

leads_bulk_reset_to_new

Returns the selected leads to NEW status so they can be added to a campaign again — the same one they already ran through, or a different one.

Campaign history is preserved: the leads' CampaignLog rows keep recording that they replied, completed or failed in previous campaigns. Only the lead status moves. Use this to run a follow-up campaign at someone who already converted, or to push a new goal at someone who replied.

Validation is per-lead: ineligible leads are returned in skipped with a stable reason code instead of failing the request. in_progress leads are live in a campaign right now — cancel that campaign for them instead. unsubscribed leads can never be reset; that is a legal opt-out, not a workflow state.

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

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

Input Schema

NameRequiredDescriptionDefault
lead_sqidsYesLead sqids to return to NEW so they can be re-enrolled.

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, the description carries the full behavioral burden and does so: it discloses that history is preserved, that validation is per-lead and non-fatal with `skipped` reason codes, and that statuses like `in_progress` and `unsubscribed` are rejected for stated reasons. It also names the underlying endpoint and method, which helps an agent reason about scope.

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 with the core action and its scope, then the exclusions, then the endpoint. Slightly repetitive: the "same campaign or a different one" idea is restated in the follow-up-campaign use case, costing a sentence of redundancy.

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?

For a one-parameter bulk mutation with no output schema, the description supplies the missing return-shape information (a `skipped` list with stable reason codes) and the eligibility rules an agent needs to avoid pointless calls. Nothing material is left unstated.

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%, so the single `lead_sqids` parameter is already documented, including its re-enrollment purpose. The prose adds only the framing that these leads are returned to `NEW` so they can be re-added to a campaign, which is essentially the schema's own wording — adequate but not additive.

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 ("Returns the selected leads to `NEW` status") plus the scope limit ("Only the lead status moves"). It explicitly separates itself from a campaign-history mutation by noting `CampaignLog` rows are untouched, so an agent won't confuse it with campaign-log status tools.

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 concrete when-to-use cases ("run a follow-up campaign at someone who already converted, or to push a new goal at someone who replied") and explicit when-not cases: `in_progress` leads should have their campaign cancelled instead, and `unsubscribed` leads can never be reset because it is a legal opt-out.

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.