import_leads
Bulk import leads WITH custom fields, duplicate check and a log. PREVIEW BY DEFAULT: nothing is written unless commit=true; preview and commit take the same path and write the same log (list_import_runs). Duplicates: same e-mail = the existing lead (skipped, or with update_existing=true its EMPTY columns are filled and the custom values set — never overwritten); same company domain (from e-mail or website, free-mail ignored) = only a suggestion, not created unless create_domain_matches=true. Bad rows do not stop the run. Accepts rows (array; lead columns like title, first_name, last_name, email, phone, website, city, postal_code, country, category, source, notes … plus custom: { key: value }) or csv (header line; a column named like a custom field key or custom_ goes into that field; multiselect values separated by ; or ,). Up to 10000 rows per call.
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": "import_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | CSV text with header line (alternative to rows) | |
| rows | No | Leads as objects with lead columns plus custom: { key: value } | |
| commit | No | true writes. Default false = preview. | |
| source | No | Where the rows come from, e.g. 'brevo-2025-12' — appears in the log; also set as the leads' source if the row has none. | |
| update_existing | No | Same e-mail: fill empty columns and set custom values on the existing lead. | |
| create_domain_matches | No | Create leads even if only the company domain matches an existing lead. |