update_lead_variables
Edit personalization values on the LEAD record, which every campaign that lead is in shares (and, by default, the prospects already running pick the change up). To change a value for ONE campaign only and leave the lead and every other campaign alone, use update_prospect_variables instead. Change values on existing leads without re-pushing them. Use when a value was wrong or has changed, e.g. a company raised a new round, or to fix a bad import (a column that landed with the wrong value for a batch). Pass lead_id for one lead or lead_ids (up to 1000) to apply the same values to many; give exactly one of them. Pass an empty string to clear a variable. By default the change also reaches prospects already running in campaigns, EXCEPT any prospect that has already been sent a message using that variable, so it can never rewrite what someone actually received. Set propagate=false to update ONLY the leads. One lead returns counts of what was updated plus withheldTokens naming variables that were kept back for that reason. Many leads: PARTIAL SUCCESS IS NORMAL. Each lead is updated atomically with its own prospects, but a lead that fails is counted in failed and named in failedIds while the rest of the batch continues, so retry just those ids rather than replaying the whole batch. If nothing at all was updated the call fails with bulk_all_failed (422) and the counts are still in the body. Either way the response carries truncatedTokens, naming any variable whose value ran past the 500 character cap and was therefore stored CUT (for many leads, on EVERY id in the batch, reported once for the request). The write still succeeds, so truncatedTokens is your only signal: if it names a variable you were using to carry a whole message, shorten the text and call again.
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": {
"values": "<values>"
},
"name": "update_lead_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Variable token -> new value, e.g. { recent_funding: 'Series C' }. Empty string deletes the value. Keys colliding with built-in variables are ignored. A value is TRIMMED AND TRUNCATED AT 500 CHARACTERS. That is not silent: the response names every variable it cut in `truncatedTokens`, so if you are writing a whole message into one variable rather than a short phrase, check that field and shorten the text if it appears. | |
| lead_id | No | One lead to update (id from get_lead_list with include_leads). Use this OR lead_ids. | |
| lead_ids | No | Many leads to give the same values (ids from get_lead_list with include_leads), up to 1000. Use this OR lead_id. | |
| propagate | No | Default true. Set false to update ONLY the leads and leave every running campaign untouched. |