Skip to main content
Glama

Update lead

update_lead
Destructive

Update fields on an existing lead by id. Provide a patch with at least one field. Use search_leads first to find the lead id. The result echoes the operating workspace.

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": {
      "id": "<id>",
      "patch": "<patch>"
    },
    "name": "update_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe lead id returned by search_leads.
patchYesThe lead fields to update; include at least one changed field.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / patch / properties / email / anyOf
      Previous value: -[
      -  {
      -    "format": "email",
      -    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "email",
      +    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / patch / properties / nextActionDate / anyOf
      Previous value: -[
      -  {
      -    "format": "date-time",
      -    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date-time",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The lead id returned by the matching search/list tool."New value: +"The lead id returned by search_leads."
  5. Changed13 schema fields changed
    • addedInput schema / properties / patch / properties / assignedTo / description
      Added value: +"User id of the workspace member to own the lead; null to unassign."
    • addedInput schema / properties / patch / properties / companyName / description
      Added value: +"The lead's company name; null to clear."
    • addedInput schema / properties / patch / properties / email / description
      Added value: +"The lead's email; null to clear."
    • addedInput schema / properties / patch / properties / name / description
      Added value: +"The lead's full name or label."
    • addedInput schema / properties / patch / properties / nextActionDate / description
      Added value: +"ISO 8601 timestamp of the next action; null to clear."
    • addedInput schema / properties / patch / properties / nextActionNote / description
      Added value: +"What the next action is; null to clear."
    • addedInput schema / properties / patch / properties / notes / description
      Added value: +"Free-text notes; null to clear."
    • addedInput schema / properties / patch / properties / phone / description
      Added value: +"The lead's phone number; null to clear."
    • addedInput schema / properties / patch / properties / position / description
      Added value: +"The lead's job title/position; null to clear."
    • addedInput schema / properties / patch / properties / score / description
      Added value: +"Lead quality score, 0-100."
    • addedInput schema / properties / patch / properties / source / description
      Added value: +"Lead source key (see list_lead_sources)."
    • addedInput schema / properties / patch / properties / status / description
      Added value: +"Lead status: new, contacted, qualified, unqualified, or converted."
    • addedInput schema / properties / patch / properties / tags / description
      Added value: +"Tags for segmentation (replaces the existing set; max 30)."
  6. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"The lead id returned by the matching search/list tool."
    • addedInput schema / properties / patch / description
      Added value: +"The lead fields to update; include at least one changed field."
  7. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=true, idempotentHint=false), so the description only needs to add context. It adds the partial-update requirement and notes the result echoes the operating workspace, but never warns about the destructive/irreversible nature the annotation implies or how replaced fields (e.g. tags) behave.

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?

Three short sentences, zero filler, with the core operation and the id-acquisition prerequisite front-loaded. Every sentence carries needed 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 a nested-patch mutation tool with no output schema, the description covers the identifier source, the minimum patch requirement, and the response shape at a high level. It omits permission/validation behavior, which keeps it from being fully 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 description coverage is 100%, and the nested patch schema documents each field, including null-to-clear semantics and tag replacement. The description only restates that a patch is required, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('Update fields on an existing lead by id') and clarifies that a patch is the mechanism. It does not explicitly distinguish itself from adjacent lead mutators such as assign_lead or convert_lead, so it stops short of 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?

Gives a clear prerequisite workflow ('Use search_leads first to find the lead id') and a constraint ('patch with at least one field'), which tells the agent how to prepare and invoke the call. It stops short of 5 because it never says when to prefer assign_lead/convert_lead over a general field update.

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