Skip to main content
Glama

update_prospect_variables

DestructiveIdempotent

Edit personalization values for ONE CAMPAIGN only: the prospect's copy in that campaign. Unlike update_lead_variables this never touches the underlying lead or any other campaign, so use it when a value is right in general but wrong for this specific campaign's angle (to fix the value everywhere, use update_lead_variables). Pass prospect_id for one prospect or prospect_ids (up to 1000) to apply the same values to many; give exactly one of them. Not step-gated: the change applies to every remaining message for the prospect. The response names any variable it had to shorten to the 500 character cap in truncatedTokens, so a value that arrived over the limit is visible rather than silently cut. With many prospects, partial success is reported the same way as update_lead_variables: check failed / failedIds and retry only those, and check truncatedTokens for any variable that was cut on every id in the batch.

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

Input Schema

NameRequiredDescriptionDefault
valuesYesVariable 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.
prospect_idNoOne prospect to update (id from list_campaign_prospects or search_prospects). Use this OR prospect_ids.
prospect_idsNoMany prospects to give the same values, up to 1000. Use this OR prospect_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / prospect_id / description
      Previous value: -"Id of the prospect (from list_campaign_prospects or search_prospects)."New value: +"One prospect to update (id from list_campaign_prospects or search_prospects). Use this OR prospect_ids."
    • addedInput schema / properties / prospect_ids
      Added value: +{
      +  "description": "Many prospects to give the same values, up to 1000. Use this OR prospect_id.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 1000,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / values / description
      Previous value: -"Variable token -> new value. Empty string deletes. A value is TRIMMED AND TRUNCATED AT 500 CHARACTERS. That is not silent any more: 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."New value: +"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."
    • changedInput schema / required
      Previous value: -[
      -  "prospect_id",
      -  "values"
      -]New value: +[
      +  "values"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses that changes apply to every remaining message, that values are truncated at 500 characters with the cut names surfaced in `truncatedTokens`, and that batch runs can partially fail with `failed`/`failedIds` for targeted retry. These are exactly the operational traits an agent needs before 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and scope are front-loaded in the first sentence, and the alternative-tool routing follows immediately. It is somewhat long and explains the `truncatedTokens` behavior twice (once for single, once for batch), which is mild redundancy rather than waste.

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?

With no output schema, the description carries return-value information itself and does so: it names `truncatedTokens`, `failed`, and `failedIds`. For a destructive, batch-capable mutation with nested variable values, nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description adds genuine meaning on top: mutual exclusivity of `prospect_id` and `prospect_ids` (not encoded as oneOf in the schema) and the 1000-item batch cap with same-values-for-all semantics. It largely repeats the 500-character truncation note already in the `values` schema field, so it is not purely 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?

The description opens with a specific verb and tightly scoped resource: 'Edit personalization values for ONE CAMPAIGN only: the prospect's copy in that campaign.' It explicitly contrasts with the sibling update_lead_variables, so an agent can distinguish the two without opening either schema.

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?

It gives an explicit when-to-use rule ('a value is right in general but wrong for this specific campaign's angle') and a named alternative for the opposite case ('to fix the value everywhere, use update_lead_variables'). It also states the parameter exclusivity rule ('give exactly one of them') and the step-gating status, leaving little to infer.

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