Skip to main content
Glama

create_lead

Destructive

Create a lead. Checks for an existing person FIRST (name, email, phone, social_url) and REFUSES with the candidates if one is found — pass on_duplicate="force" only once you have looked and they really are someone else. A social_url passed here is stored on the lead so the next lookup finds them. 'title' is required. Optional: every column update_lead accepts — status, first/last name, email, best_email, phone, best_phone, address, city, postal_code, country, account_id, contact_id, owner_id, value, notes, next_action(at), category, website, instagram, fax, source, source_url, extra_1..3, the ad* origin fields, and the referral_* fields.

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": {
      "title": "<title>"
    },
    "name": "create_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
faxNoFax number
cityNoCity
emailNoEmail address
notesNoFree-text notes
phoneNoPhone number
titleYesTitle of the lead
valueNoMonetary value of the lead
customNoLead custom field values { key: value } set in the same call (list_custom_fields entity 'leads'); null clears. Checked like set_custom_values.
sourceNoWhere the lead came from
statusNoInitial status
addressNoPostal address
countryNoCountry (ISO code or name)
extra_1NoFree extra field 1
extra_2NoFree extra field 2
extra_3NoFree extra field 3
websiteNoWebsite URL
categoryNoLead category
owner_idNoID of the owner (user)
ad_sourceNoAdvertising platform the lead came from: meta | linkedin | google_ads | microsoft_ads | pinterest | tiktok | openai_ads.
instagramNoInstagram profile of the lead
last_nameNoLast name
account_idNoID of the account (company)
ad_form_idNoID of the lead form
best_emailNoPreferred e-mail address to reach the lead
best_phoneNoPreferred phone number to reach the lead; used before phone when dialing
contact_idNoID of the contact
first_nameNoFirst name
social_urlNoProfile URL (LinkedIn etc.). Stored on the lead, so the next duplicate check finds this person by it.
source_urlNoSource URL
ad_click_idNoThe platform's click id (fbclid, gclid, li_fat_id, msclkid, epik, ttclid, oppref).
ad_group_idNoID of the ad group
next_actionNoText of the next planned action
postal_codeNoPostal code
on_duplicateNo'warn' (default) refuses when an existing person matches and returns the candidates. 'force' creates anyway — use it only after looking at those candidates and concluding this really is someone else.
referral_linkNoLink for who/what referred this lead — e.g. a URL, or the in-app link to the referring lead.
ad_campaign_idNoID of the ad campaign
ad_creative_idNoID of the ad creative
ad_external_idNoThe platform's own id for this submission. Duplicate guard only.
ad_received_atNoWhen the platform recorded the click/submission (ISO).
next_action_atNoNext action time (ISO 8601)
referral_commentNoFree-text note on the referral arrangement.
referral_share_typeNo'revenue' or 'profit' — what the agreed share is a percentage of.
referral_share_percentNoAgreed referral share, 0-100 (%).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed32 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / ad_campaign_id / description
      Added value: +"ID of the ad campaign"
    • addedInput schema / properties / ad_creative_id / description
      Added value: +"ID of the ad creative"
    • addedInput schema / properties / ad_form_id / description
      Added value: +"ID of the lead form"
    • addedInput schema / properties / ad_group_id / description
      Added value: +"ID of the ad group"
    • addedInput schema / properties / address / description
      Added value: +"Postal address"
    • addedInput schema / properties / best_email / description
      Added value: +"Preferred e-mail address to reach the lead"
    • addedInput schema / properties / best_phone / description
      Added value: +"Preferred phone number to reach the lead; used before phone when dialing"
    • addedInput schema / properties / category / description
      Added value: +"Lead category"
    • addedInput schema / properties / city / description
      Added value: +"City"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / country / description
      Added value: +"Country (ISO code or name)"
    • addedInput schema / properties / email / description
      Added value: +"Email address"
    • addedInput schema / properties / extra_1 / description
      Added value: +"Free extra field 1"
    • addedInput schema / properties / extra_2 / description
      Added value: +"Free extra field 2"
    • addedInput schema / properties / extra_3 / description
      Added value: +"Free extra field 3"
    • addedInput schema / properties / fax / description
      Added value: +"Fax number"
    • addedInput schema / properties / first_name / description
      Added value: +"First name"
    • addedInput schema / properties / instagram / description
      Added value: +"Instagram profile of the lead"
    • addedInput schema / properties / last_name / description
      Added value: +"Last name"
    • addedInput schema / properties / next_action / description
      Added value: +"Text of the next planned action"
    • addedInput schema / properties / next_action_at / description
      Added value: +"Next action time (ISO 8601)"
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes"
    • addedInput schema / properties / owner_id / description
      Added value: +"ID of the owner (user)"
    • addedInput schema / properties / phone / description
      Added value: +"Phone number"
    • addedInput schema / properties / postal_code / description
      Added value: +"Postal code"
    • addedInput schema / properties / source / description
      Added value: +"Where the lead came from"
    • addedInput schema / properties / source_url / description
      Added value: +"Source URL"
    • addedInput schema / properties / status / description
      Added value: +"Initial status"
    • addedInput schema / properties / title / description
      Added value: +"Title of the lead"
    • addedInput schema / properties / value / description
      Added value: +"Monetary value of the lead"
    • addedInput schema / properties / website / description
      Added value: +"Website URL"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations (which only declare destructive/non-idempotent/non-read-only) by disclosing the refusal-and-candidates flow, the force escape hatch, and the side effect that a passed social_url is persisted so future lookups match on it. It does not say what a successful call returns or how the candidate list is shaped, which matters for a tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The front-loaded duplicate-handling guidance is dense and earns its place, but the trailing sentence is a 20+ item field list that duplicates the input schema verbatim. That enumeration inflates length without adding information an agent cannot read from the schema.

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 43-parameter destructive create with no output schema, the description covers the highest-risk behavior (duplicate refusal) and the required field, but omits what the call returns and any note on which of the many optional fields materially affect dedupe or downstream routing. Adequate but not fully complete for this complexity.

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 already 100%, so the bar is baseline 3, but the description adds cross-tool meaning: any column update_lead accepts is accepted here, which is not inferable from the schema alone. The long enumeration of field names largely restates the schema, though the on_duplicate and social_url notes add genuine semantic weight.

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?

Opens with a specific verb+resource ('Create a lead') and immediately distinguishes itself behaviorally from a naive create by describing the duplicate-check-first path. It also anchors scope by referencing the sibling 'update_lead' field set, so an agent can place it relative to other lead tools.

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?

Gives an explicit when-not: it refuses when an existing person matches on name/email/phone/social_url and returns candidates, and warns to pass on_duplicate="force" only after reviewing those candidates. It does not address when to prefer create_lead over other ingestion paths (e.g. ingest_whatsapp_lead) for pre-existing channels, so it stops short of full alternative routing.

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.