Skip to main content
Glama

MailBeast.ai

Update a lead

update_lead
DestructiveIdempotent

Change a lead’s fields, tags, custom fields or status. The email can only change before the lead is first contacted.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoTag names.
emailNo
leadIdYesLead id (UUID).
statusNoLead status to set. Allowed: lead_replied_interested, lead_replied_meeting_request, lead_replied_out_of_office, lead_replied_wrong_person, lead_replied_not_interested, lead_replied_unsubscribed, lead_replied_uncategorized, lead_converted, lead_lost, blacklisted. The lead_replied_* statuses and lead_converted need a lead that has replied.
websiteNo
jobTitleNo
lastNameNo
locationNo
firstNameNo
campaignIdYesCampaign id (UUID).
companyNameNo
customFieldsNoFlat map of extra lead data. A key `industry` is used in emails as {{custom_industry}}. Keys: lowercase letters, digits, underscores, starting with a letter, up to 64 chars.
linkedinProfileNo
customFieldTypesNoColumn types, applied when a field is first defined.
customFieldLabelsNoColumn labels, applied when a field is first defined.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / status / description
      Previous value: -"Lead status to set (required for set_status). Allowed: lead_replied_interested, lead_replied_meeting_request, lead_replied_out_of_office, lead_replied_wrong_person, lead_replied_not_interested, lead_replied_unsubscribed, lead_replied_uncategorized, lead_converted, lead_lost, blacklisted. The lead_replied_* statuses and lead_converted need a lead that has replied."New value: +"Lead status to set. Allowed: lead_replied_interested, lead_replied_meeting_request, lead_replied_out_of_office, lead_replied_wrong_person, lead_replied_not_interested, lead_replied_unsubscribed, lead_replied_uncategorized, lead_converted, lead_lost, blacklisted. The lead_replied_* statuses and lead_converted need a lead that has replied."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=true, so the safety profile is covered by structured data. The description adds one non-obvious behavioral rule the annotations cannot express: email is immutable after first contact. It does not disclose what destructiveHint=true actually destroys (e.g. whether omitted fields or existing tags are wiped on update), nor what a partial update does to values not supplied.

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?

Two short sentences, front-loaded with the core action and followed immediately by the single most consequential constraint. No filler, no repetition of the title or name.

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

Completeness2/5

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

This is a 15-parameter, nested-object, destructive mutation with no output schema, and the description accounts for only the email rule. An agent still cannot tell whether the call is a full replace or a partial patch, whether unspecified tags/custom fields are cleared, or what the response contains after a mutation.

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 47% across 15 parameters, so the description must compensate for roughly half. It contributes only the email mutability rule (the email property has no description in the schema) and names the editable groups, but says nothing about customFields/customFieldTypes/customFieldLabels interplay, status enum preconditions, or the plain field parameters like website, jobTitle, or linkedinProfile.

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?

"Change a lead's fields, tags, custom fields or status" names a specific verb (change) and resource (lead) and enumerates the families of editable attributes, so an agent knows what the tool mutates. It stops short of distinguishing itself from the bulk variants (bulk_set_lead_status, bulk_add_lead_tags), which the agent must infer from the word 'a lead' being singular.

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

Usage Guidelines3/5

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

The only real usage guidance is the constraint that email can only change before first contact, which is genuinely useful pre-call context. There is no statement of when to prefer this over bulk_set_lead_status, bulk_add_lead_tags, or bulk_remove_lead_tags, and no prerequisites such as required permissions or whether the lead must belong to the given campaign.

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