Skip to main content
Glama

Update Prospect

update_prospect

Set priority=True to push this person's queued sends — email and LinkedIn alike — ahead of everyone else's; it's account-wide and durable, carrying across the sequence's later steps for this person. priority=False clears it. One priority flag per prospect, independent of channel: both channels' derived send order reads it.

Most stage transitions — sent, connected, messaged, replied — stamp automatically from send and reply detection; don't set those by hand. The three reply-outcome rungs above replied — interested/meeting_booked (positive) and not_interested (an explicit decline) — normally stamp from the reply classifier too, so set one by hand only to fix a wrong call or record an off-platform outcome: stage='interested' for clear interest, stage='meeting_booked' when they agree to or book a meeting, stage='not_interested' when they've declined. The mark only raises a rung — a decline can't override a live positive (to lower a false meeting_booked/interested, correct that reply with correct_reply_outcome) — and it counts the person as replied, so to drop someone who never engaged use stage='skipped'. Setting a reply-outcome rung also cancels the person's still-pending queued outreach on both channels — automation stops; messages you queue afterwards still send. A later positive reply lifts not_interested back up on its own.

When you set stage='skipped', pass skip_note with the reason in a few words, so a later reader knows why this person was dropped without digging up the chat — a bare skip records no reason.

To reverse a skip and put the person back in the funnel, set stage to the rung they should resume at — normally stage='pending' to re-queue them from the top. That re-enters them into outreach (a still-skipped prospect is held out of every send) and clears the stale skip note; their flow position is preserved, so the sequence resumes from where they were rather than restarting a step already taken.

To store an address you found for a prospect that reached an email step without one (recovering an email_not_found block), pass email; the stamped address makes the step send when you retry it. For a blocked prospect, retry_blocked_enactment(email=...) stamps and retries in one call instead.

To undo an accidental hand-set mark (e.g. a prospect wrongly marked meeting_booked), pass clear_manual_mark=True on channel — it removes the mark and re-derives the stage from actual send/reply activity, the only way to lower past a manual mark (which the mark path deliberately floors demotions at). This differs from correct_reply_outcome, which re-judges a specific reply; use clear_manual_mark when the wrong rung came from a hand mark, not a misjudged reply. Pass it on its own (no stage/data/priority/email). Dict with the updated item details. After a skip, skip_outcome says how many queued sends were cancelled and lists any that had already gone out — a skip can't undo those, so tell the user about them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoAn address to store for this prospect (optional). Fills in a prospect that reached an email step without one, so a retried step can send. Lands on the person's profile, the prospect's only address, overwriting an existing one — so it also changes the address any teammate's campaign for this person sends to. Refused if the address already belongs to another person in the workspace (likely the same person under two records). Leave unset for ordinary stage/priority updates.
stageNoNew stage value (optional) — e.g. 'skipped' to drop the person, 'pending' to reverse a skip and re-queue them.
channelYes'linkedin' or 'email' — which funnel the update applies to: the stage column `stage` sets, the manual mark `clear_manual_mark` removes, and the queued sends a skip cancels.
agent_idYesID of the agent
priorityNoTrue to prioritize this prospect's queued sends (email and LinkedIn) over everyone else's; False to clear. Account-wide and channel-independent (optional).
skip_noteNoShort free-text reason for a skip, e.g. "off-industry — gold mining, not supplements" (optional). Recorded only when stage='skipped'; ignored otherwise.
prospect_idYesThe prospect's `id` — the outreach_prospects primary key, as returned on every query_prospects row and shown on the flow roster line.
data_updatesNoDict to merge into existing data (optional)
linkedin_urlNoA corrected or missing LinkedIn profile URL/slug to bind to THIS prospect in place (optional) — an unverified claim the next send verifies through the profile resolver; any prior verification of the old URL is cleared with it. Refused when the URL already belongs to another of the user's prospects, or when a teammate's prospect verified the same person.
on_behalf_ofNoAn agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account.
clear_manual_markNoTrue to remove this channel's hand-set reply-outcome mark and re-derive the stage from send/reply activity — the undo for an accidental mark. Pass it alone; combining with stage/data_updates/priority/email is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / channel / title
      Added value: +"Channel"
    • addedInput schema / properties / on_behalf_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "An agency client's email, from list_agency_clients, to run this call in that client's account: their agents, settings, connected accounts, and credits. Omit it to act on your own account."
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"An address to store for this prospect (optional). Fills in a prospect that\nreached an email step without one, so a retried step can send. Lands on the\ncampaign row and on the person's profile, overwriting either's existing\naddress; refused if the address already belongs to another prospect in the\naccount (reconcile the duplicate instead). Leave unset for ordinary\nstage/priority updates."New value: +"An address to store for this prospect (optional). Fills in a prospect that\nreached an email step without one, so a retried step can send. Lands on the\nperson's profile, the prospect's only address, overwriting an existing one —\nso it also changes the address any teammate's campaign for this person sends\nto. Refused if the address already belongs to another person in the\nworkspace (likely the same person under two records). Leave unset for\nordinary stage/priority updates."
  3. Changed4 schema fields changed
    • changedInput schema / properties / channel / description
      Previous value: -"'linkedin' or 'email' — which funnel the update applies to and which\nhandle on `person` is matched (email against the email column; url/\nprovider_id against the LinkedIn columns)."New value: +"'linkedin' or 'email' — which funnel the update applies to: the stage\ncolumn `stage` sets, the manual mark `clear_manual_mark` removes, and the\nqueued sends a skip cancels."
    • removedInput schema / properties / person
      Removed value: -{
      -  "description": "A handle to the prospect — pass the LinkedIn URL / provider_id / email\nyou already hold; the tool resolves the row within `channel`.",
      -  "properties": {
      -    "display_name": {
      -      "default": "",
      -      "description": "Human-readable name for the UI label.",
      -      "type": "string"
      -    },
      -    "email": {
      -      "default": "",
      -      "description": "The lead's email, if that's the only identifier.",
      -      "type": "string"
      -    },
      -    "linkedin_provider_id": {
      -      "default": "",
      -      "description": "The lead's LinkedIn provider id (ACoAA…), if known.",
      -      "type": "string"
      -    },
      -    "linkedin_url": {
      -      "default": "",
      -      "description": "The lead's LinkedIn profile URL, if known.",
      -      "type": "string"
      -    }
      -  },
      -  "title": "PersonRef",
      -  "type": "object"
      -}
    • addedInput schema / properties / prospect_id
      Added value: +{
      +  "description": "The prospect's `id` — the outreach_prospects primary key, as\nreturned on every query_prospects row and shown on the flow roster line.",
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "agent_id",
      -  "person",
      -  "channel"
      -]New value: +[
      +  "agent_id",
      +  "prospect_id",
      +  "channel"
      +]
  4. Changed3 schema fields changed
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "description": "ID of the agent",
      +  "type": "integer"
      +}
    • removedInput schema / properties / task_id
      Removed value: -{
      -  "description": "ID of the task",
      -  "type": "integer"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "task_id",
      -  "person",
      -  "channel"
      -]New value: +[
      +  "agent_id",
      +  "person",
      +  "channel"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"An address to store on the prospect's email column (optional). Fills in a\nprospect that reached an email step without one, so a retried step can send.\nOverwrites this prospect's existing address; refused if the address already\nbelongs to another prospect in the account (reconcile the duplicate instead).\nLeave unset for ordinary stage/priority updates."New value: +"An address to store for this prospect (optional). Fills in a prospect that\nreached an email step without one, so a retried step can send. Lands on the\ncampaign row and on the person's profile, overwriting either's existing\naddress; refused if the address already belongs to another prospect in the\naccount (reconcile the duplicate instead). Leave unset for ordinary\nstage/priority updates."
  6. Changed2 schema fields changed
    • addedInput schema / properties / linkedin_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "A corrected or missing LinkedIn profile URL/slug to bind to THIS\nprospect in place (optional) — an unverified claim the next send verifies\nthrough the profile resolver; any prior verification of the old URL is\ncleared with it. Refused when the URL already belongs to another of the\nuser's prospects, or when a teammate's prospect verified the same person."
      +}
    • changedInput schema / properties / stage / description
      Previous value: -"New stage value (optional, e.g. \"skipped\")"New value: +"New stage value (optional) — e.g. 'skipped' to drop the person, 'pending'\nto reverse a skip and re-queue them."
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false / destructiveHint=false; the description goes well beyond that, disclosing that priority is account-wide and durable, that a reply-outcome rung cancels both channels' pending sends, that the mark path floors demotions, that a skip preserves flow position and clears the stale note, and that clear_manual_mark must be passed alone. These are exactly the mutation side effects an agent needs.

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?

The opening sentence front-loads the core action and the length is largely justified by 11 interacting parameters and non-obvious state transitions. Some passages (the sequence of stage-transition paragraph) are dense and could be tightened, but there is little pure filler.

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?

For a complex mutation tool with no output schema, the returns section still explains the post-skip payload (skip_outcome with cancelled/already-sent sends and the warning that sent ones can't be recalled). Combined with the transition and priority semantics, an agent has everything needed to call it correctly.

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, but the description adds real cross-parameter meaning: the channel→stage-column mapping, priority being channel-independent, skip_note only applying with stage='skipped', and clear_manual_mark's mutual exclusion with other args. It stops short of documenting every parameter (data_updates is only named, not explained), so it does not fully rise above the schema.

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?

States a specific verb and resource and enumerates exactly what can be changed (stage, data, send priority, stored contact info), with the channel-scoped stage mapping called out. It also explicitly routes companies to update_monitored_company, which lets an agent separate it from a similarly-named sibling without reading schemas.

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?

Gives explicit when/when-not guidance throughout: don't hand-set sent/connected/messaged/replied, set reply-outcome rungs only to fix a misjudgement or record off-platform outcomes, use skipped to drop a never-engaged person, and use clear_manual_mark vs correct_reply_outcome depending on whether the wrong rung came from a hand mark or a misjudged reply. It also names the alternative path (retry_blocked_enactment) and forbids the duplicate-creating path (track_prospects).

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