Skip to main content
Glama

Mark lead lost

mark_lead_lost
Destructive

Mark a lead as lost. Requires a reason. Applies at once, with no confirmation step. Bring it back with save_lead reopen=true.

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_id": "<lead_id>",
      "reason": "<reason>"
    },
    "name": "mark_lead_lost"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYeswhy this lead is lost
lead_idYesthe lead to mark lost, an id from list_leads
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { inquiry_date, referred_by, guest_count, budget, company, customer { email, id, name, phone }, customer_id, email, event_date, event_id, event_type, id, internal_notes, latitude, location, locked, longitude, lost_at, and 9 more fields } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / lead_id / description
      Previous value: -"the lead to mark lost"New value: +"the lead to mark lost, an id from list_leads"
    • addedInput schema / properties / lead_id / minLength
      Added value: +1
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • addedInput schema / properties / reason / minLength
      Added value: +1
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"the API response { status (HTTP status), data: { inquiry_date, referred_by, guest_count, budget, company, customer { email, id, name, phone }, customer_id, email, event_date, event_id, event_type, id, internal_notes, latitude, location, locked, longitude, lost_at, and 9 more fields } }"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds real behavioral value beyond them: the change 'applies at once, with no confirmation step' and can be reversed via save_lead reopen=true. It doesn't say whether lead history or prior stage is retained, which is the remaining gap for a destructive 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, front-loaded with the action, then the precondition, then the immediacy warning, then the undo path. Every sentence carries distinct decision-relevant information with no filler.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. Combined with the immediacy and undo notes, an agent has what it needs to invoke this correctly; only the data-retention question remains unanswered.

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 lead_id, reason, and organization_id are already documented in the schema, including that lead_id comes from list_leads and organization_id from get_me. The description only reiterates that a reason is required, adding no format or semantic detail beyond structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Mark a lead as lost'), which cleanly separates it from write-oriented siblings like delete_lead or convert_lead in intent. It stops short of explicitly contrasting itself with those siblings, so it earns a 4 rather than a 5.

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?

It states a hard precondition ('Requires a reason') and an explicit undo path ('Bring it back with save_lead reopen=true'), which is strong when-to-use context. It doesn't say when to prefer this over delete_lead or abandon_event_plan, so the alternative guidance is partial.

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.