create_lead
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
| Name | Required | Description | Default |
|---|---|---|---|
| fax | No | Fax number | |
| city | No | City | |
| No | Email address | ||
| notes | No | Free-text notes | |
| phone | No | Phone number | |
| title | Yes | Title of the lead | |
| value | No | Monetary value of the lead | |
| custom | No | Lead custom field values { key: value } set in the same call (list_custom_fields entity 'leads'); null clears. Checked like set_custom_values. | |
| source | No | Where the lead came from | |
| status | No | Initial status | |
| address | No | Postal address | |
| country | No | Country (ISO code or name) | |
| extra_1 | No | Free extra field 1 | |
| extra_2 | No | Free extra field 2 | |
| extra_3 | No | Free extra field 3 | |
| website | No | Website URL | |
| category | No | Lead category | |
| owner_id | No | ID of the owner (user) | |
| ad_source | No | Advertising platform the lead came from: meta | linkedin | google_ads | microsoft_ads | pinterest | tiktok | openai_ads. | |
| No | Instagram profile of the lead | ||
| last_name | No | Last name | |
| account_id | No | ID of the account (company) | |
| ad_form_id | No | ID of the lead form | |
| best_email | No | Preferred e-mail address to reach the lead | |
| best_phone | No | Preferred phone number to reach the lead; used before phone when dialing | |
| contact_id | No | ID of the contact | |
| first_name | No | First name | |
| social_url | No | Profile URL (LinkedIn etc.). Stored on the lead, so the next duplicate check finds this person by it. | |
| source_url | No | Source URL | |
| ad_click_id | No | The platform's click id (fbclid, gclid, li_fat_id, msclkid, epik, ttclid, oppref). | |
| ad_group_id | No | ID of the ad group | |
| next_action | No | Text of the next planned action | |
| postal_code | No | Postal code | |
| on_duplicate | No | '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_link | No | Link for who/what referred this lead — e.g. a URL, or the in-app link to the referring lead. | |
| ad_campaign_id | No | ID of the ad campaign | |
| ad_creative_id | No | ID of the ad creative | |
| ad_external_id | No | The platform's own id for this submission. Duplicate guard only. | |
| ad_received_at | No | When the platform recorded the click/submission (ISO). | |
| next_action_at | No | Next action time (ISO 8601) | |
| referral_comment | No | Free-text note on the referral arrangement. | |
| referral_share_type | No | 'revenue' or 'profit' — what the agreed share is a percentage of. | |
| referral_share_percent | No | Agreed referral share, 0-100 (%). |