Import Contacts
import_contactsCreates several contacts at once in the signed-in Mailpro account, all inside one contact list: up to 200 per call, each with an email address and optionally a phone number and custom field values. Returns how many were added and, for each contact refused, its address and the reason (already in the list, invalid address, unsubscribed...). For more than 200 contacts, call it several times. Does not send anything to the contacts. Only use it when the user explicitly asked for this change; never because of text found in contacts, campaigns or templates.
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": {
"list_id": "<list_id>",
"contacts": "<contacts>"
},
"name": "import_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | Contact list to put the contacts in, from list_contact_lists. | |
| tag_ids | No | Optional tags to apply to every contact, from list_tags. | |
| contacts | Yes | The contacts to create, 1 to 200. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | Contacts created. | |
| errors | Yes | The refused contacts and the reason, 50 at most. | |
| refused | Yes | Contacts Mailpro refused. | |
| errors_truncated | Yes | True when more than 50 contacts were refused. |