Skip to main content
Glama

leads_update

Patch any writable field. To merge context fields (rather than replace the whole dict), use the leads_context action instead — it does a shallow merge.

Method: PATCH /api/v1/workspaces/{workspace_sqid}/leads/{sqid}/

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": {
      "sqid": "<sqid>"
    },
    "name": "leads_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
notesNo
statusNoLead lifecycle stage: NEW → IN_PROGRESS → REPLIED / INTERESTED / NOT_INTERESTED (a person replied; REPLIED = needs a human to read it) or COMPLETED (campaign finished without a reply); also UNSUBSCRIBED, FAILED, ARCHIVED. Set automatically from replies; override to record your own judgement of a reply (e.g. REPLIED → INTERESTED). UNSUBSCRIBED is permanent: an opt-out can't be changed back. * `NEW` - New * `IN_PROGRESS` - In Progress * `REPLIED` - Replied * `INTERESTED` - Interested * `NOT_INTERESTED` - Not Interested * `COMPLETED` - Completed * `FAILED` - Failed * `UNSUBSCRIBED` - Unsubscribed * `ARCHIVED` - Archived
contactNoPrimary contact value — an email address when contact_type='email', a phone number or LinkedIn URL otherwise.
contextNoFree-form JSON object for workspace-defined custom fields (see context_fields). Keys referenced as ${field_key} in sequence step templates. PATCH this via the 'context' action to merge rather than replace.
lead_nameNoDisplay name (usually 'First Last' or company name for company-only leads).
contact_typeNoChannel: 'email', 'phone', or 'linkedin'. Email is the only channel that can drive campaigns. * `EMAIL` - Email * `PHONE` - Phone * `LINKEDIN` - LinkedIn * `OTHER` - Other
last_sale_atNoDate of the last sale to this recipient.
prior_customerNoThe recipient bought from you before (existing-customer rules).
role_relevanceNoOne sentence on why the offer fits this person's job. Required by some countries' rules for named addresses.
declared_countryNoCountry you state for this recipient: ISO 2-letter code or English name. It can make the result stricter, never looser, when other sources disagree. Changing it re-resolves recipient_country.
discovery_person_guidNoGUID of the discovery Person this lead was sourced from (if any). Must reference a GUID the workspace has access to. Set to null to unlink.
discovery_company_guidNoGUID of the discovery Company this lead was sourced from (if any). Used by enrichments to look up company metadata. Must reference a GUID the workspace has access to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does disclose the important behavioral trait that `context` is replaced wholesale here rather than merged, which is a genuine data-loss hazard. It says nothing about permission requirements, side effects of status transitions (automations, country re-resolution), whether fields can be nulled, or the response shape.

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?

Two short sentences plus an endpoint line, with the PATCH semantic and the sibling alternative front-loaded. The method line is useful for API-aware agents, and nothing is padded. It is close to minimal for the information conveyed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter mutation tool with no annotations and no output schema, the description covers the essential patch semantics and the context-replacement caveat, and the schema supplies most parameter detail. It still omits mutation-relevant behavior an agent would want: permission/auth needs, side effects of status changes, and what a successful response contains.

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 85%, so the schema already explains nearly every parameter, and the baseline of 3 applies. The description adds meaning only for `context` (replace vs. shallow merge) and otherwise repeats the schema's guidance. Note the description names the alternative action `leads_context` while the schema refers to a 'context' action, a small naming mismatch.

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?

"Patch any writable field" states a specific verb (partial update) and, with the PATCH path, identifies the resource as a lead. It also distinguishes itself from the context-merge sibling, so an agent can tell the two apart. The resource name only appears in the endpoint line rather than the prose, which keeps it from 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?

It gives an explicit when-to-use-elsewhere rule: for merging context fields, use `leads_context` instead of this tool, which shallow-merges rather than replacing. It offers no guidance on choosing between this and other lead mutation siblings (create, bulk actions, discovery assignment), but the primary alternative is named.

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.