Skip to main content
Glama

update_lead

DestructiveIdempotent

Update a lead (partial — only provided fields change; empty values are NOT cleared). To blank a column, list it in clear_fields.

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

Input Schema

NameRequiredDescriptionDefault
faxNoFax number
cityNoCity
emailNoEmail address
notesNoFree-text notes
phoneNoPhone number
titleNoTitle of the lead
valueNoMonetary value of the lead
customNoLead custom field values { key: value } set in the same call (list_custom_fields entity 'leads'); null clears. Checked like set_custom_values.
sourceNoWhere the lead came from
statusNoNew status
addressNoPostal address
countryNoCountry (ISO code or name)
extra_1NoFree extra field 1
extra_2NoFree extra field 2
extra_3NoFree extra field 3
lead_idYesID of the lead to change
websiteNoWebsite URL
categoryNoLead category
owner_idNoID of the owner (user)
ad_sourceNoAdvertising platform the lead came from: meta | linkedin | google_ads | microsoft_ads | pinterest | tiktok | openai_ads. Empty means not from advertising.
instagramNoInstagram profile of the lead
last_nameNoLast name
account_idNoID of the account (company)
ad_form_idNoID of the lead form
best_emailNoPreferred e-mail address to reach the lead
best_phoneNoPreferred phone number to reach the lead; used before phone when dialing
contact_idNoID of the contact
first_nameNoFirst name
source_urlNoSource URL
ad_click_idNoThe platform's click id (fbclid, gclid, li_fat_id, msclkid, epik, ttclid, oppref). Without it a report back can only be matched on the hashed e-mail.
ad_group_idNoID of the ad group
next_actionNoText of the next planned action
postal_codeNoPostal code
clear_fieldsNoColumn names to set to NULL (opt-in clear).
referral_linkNoLink for who/what referred this lead — e.g. a URL, or the in-app link to the referring lead.
ad_campaign_idNoID of the ad campaign
ad_creative_idNoID of the ad creative
ad_external_idNoThe platform's own id for this submission (Meta leadgen_id, LinkedIn response id, Google lead_id). Duplicate guard only — the click id belongs in ad_click_id.
ad_received_atNoWhen the platform recorded the click/submission (ISO). Used to build Meta's fbc value.
next_action_atNoNext action time (ISO 8601)
referral_commentNoFree-text note on the referral arrangement.
referral_share_typeNo'revenue' or 'profit' — what the agreed share is a percentage of.
referral_share_percentNoAgreed referral share, 0-100 (%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / ad_campaign_id / description
      Added value: +"ID of the ad campaign"
    • addedInput schema / properties / ad_creative_id / description
      Added value: +"ID of the ad creative"
    • addedInput schema / properties / ad_form_id / description
      Added value: +"ID of the lead form"
    • addedInput schema / properties / ad_group_id / description
      Added value: +"ID of the ad group"
    • addedInput schema / properties / address / description
      Added value: +"Postal address"
    • addedInput schema / properties / best_email / description
      Added value: +"Preferred e-mail address to reach the lead"
    • addedInput schema / properties / best_phone / description
      Added value: +"Preferred phone number to reach the lead; used before phone when dialing"
    • addedInput schema / properties / category / description
      Added value: +"Lead category"
    • addedInput schema / properties / city / description
      Added value: +"City"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / country / description
      Added value: +"Country (ISO code or name)"
    • addedInput schema / properties / email / description
      Added value: +"Email address"
    • addedInput schema / properties / extra_1 / description
      Added value: +"Free extra field 1"
    • addedInput schema / properties / extra_2 / description
      Added value: +"Free extra field 2"
    • addedInput schema / properties / extra_3 / description
      Added value: +"Free extra field 3"
    • addedInput schema / properties / fax / description
      Added value: +"Fax number"
    • addedInput schema / properties / first_name / description
      Added value: +"First name"
    • addedInput schema / properties / instagram / description
      Added value: +"Instagram profile of the lead"
    • addedInput schema / properties / last_name / description
      Added value: +"Last name"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead to change"
    • addedInput schema / properties / next_action / description
      Added value: +"Text of the next planned action"
    • addedInput schema / properties / next_action_at / description
      Added value: +"Next action time (ISO 8601)"
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes"
    • addedInput schema / properties / owner_id / description
      Added value: +"ID of the owner (user)"
    • addedInput schema / properties / phone / description
      Added value: +"Phone number"
    • addedInput schema / properties / postal_code / description
      Added value: +"Postal code"
    • addedInput schema / properties / source / description
      Added value: +"Where the lead came from"
    • addedInput schema / properties / source_url / description
      Added value: +"Source URL"
    • addedInput schema / properties / status / description
      Added value: +"New status"
    • addedInput schema / properties / title / description
      Added value: +"Title of the lead"
    • addedInput schema / properties / value / description
      Added value: +"Monetary value of the lead"
    • addedInput schema / properties / website / description
      Added value: +"Website URL"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The description excels by detailing crucial behavioral constraints beyond the schema, specifically that the update is 'partial,' empty values are NOT cleared, and provides the specific mechanism (`clear_fields`) to intentionally blank a column.

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?

The definition is highly concise and structured. Both sentences are essential, front-loading the two most important behavioral constraints of the tool.

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?

The description is highly complete regarding the operational logic of the tool (partial update mechanics). It is held back from a score of 5 because it does not define the scope or platform applicability relative to its siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant semantic meaning by explaining the operational logic of the update process. It explicitly guides the agent on how to achieve a NULL state (by listing the column in clear_fields) which is not evident from the input schema alone.

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 clearly states the resource being modified ('lead') and the action ('Update a lead'). However, given the extensive list of sibling tools for specific platforms (e.g., dynamics, odoo), it fails to clarify if this is a generic update or specific to one type of lead.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no guidance on when this tool should be used versus its many specialized update siblings. It lacks 'when-not' guidance regarding platform specificity, which is critical for the AI agent.

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.