directiq_upsert_contact
Add a contact to a list, creating the contact if the email is new or updating its name if it already exists. Optionally applies tags (created if missing). Use this to create contacts; to change other fields on an existing contact, use directiq_update_contact. Returns import counts (inserted, alreadyExisting, addedToList); emails on a suppression or bounce list are counted but not added.
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": {
"listId": "<listId>",
"email": "<email>"
},
"name": "directiq_upsert_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tag names to apply; missing tags are created | |
| Yes | Contact email address | ||
| listId | Yes | Numeric list ID (from directiq_list_lists) | |
| lastName | No | Last name; overwrites the existing value | |
| firstName | No | First name; overwrites the existing value |