upsert_lead
Create or update a lead by matching externalId, keeping CRM records in sync without duplicates.
Instructions
Create a lead, or update the one with the same externalId.
Requires scope leads:write.
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": {
"name": "<name>"
},
"name": "upsert_lead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| No | |||
| notes | No | ||
| phone | No | ||
| stage | No | ||
| value | No | In cents | |
| source | No | ||
| company | No | ||
| metadata | No | ||
| externalId | No | ID in your CRM; POST upserts on it | |
| description | No |