upsert_crm_contact
Find or create a CRM contact for the user and return its id. Matches an existing contact by LinkedIn first (linkedInMemberId, LinkedIn's numeric member id, when given; then the linkedIn URL; then the person's older URLs in linkedInAliases), then by email, then by firstName + lastName at companyDomain; a match is attached to the user and reused (never duplicated), and one found by the member id or an older URL has its stored LinkedIn URL and member id replaced with the given ones (a shared contact changes for everyone who has it). When nothing matches, the contact is created (firstName required then; jobTitle, companyDomain and companyName seed the record; a given email is stored as the primary email), except that a teammate's contact with the same LinkedIn URL or member id can be reused instead and take the given name, job title and company (a teammate's custom contact found only by member id is not reused, so a second contact can be created). Pass listId (24-hex list id) to also add the contact to that list; a contact new to the list starts the user's automations triggered by additions to that list, and an active campaign that enrolls the list's new members can start messaging the person. Returns { contactId, created } where created is true when none of the lookups above matched (normally a new contact; a teammate's contact reused at the create step also answers true).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upsert_crm_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| listId | No | ||
| jobTitle | No | ||
| lastName | No | ||
| No | |||
| firstName | No | ||
| companyName | No | ||
| companyDomain | No | ||
| linkedInAliases | No | ||
| linkedInMemberId | No |