Sales & CRM

Emelia MCP

Manage Emelia cold-email and LinkedIn campaigns, contacts and lists, enrichment, LinkedIn scrapers, mailboxes, warmup, webhooks and blacklists through Emelia's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Add contacts to list bulk

    Add up to 100 contacts to a list in one call (same behavior as add_contact_to_list for each row: campaign propagation, duplicate detection, updateIfExists). Flat object: field names as keys (contact fields like firstName/email/phone/linkedinUrlProfile, company fields like companyName/websiteUrl, or your custom variables — human-readable names work too). Any unrecognized key creates a new custom variable automatically. Rows are processed independently — the response reports created/duplicates/updated/failed counts and a per-row result.

  • Add contact to campaign

    Adds ONE contact to a multichannel campaign. The contact is stored in a list named "<campaign name> contacts from API" (created if needed) attached to the campaign. If the campaign is FINISHED it is started again automatically (all start checks apply); if it is RUNNING the contact is scheduled immediately. A contact already present in that list (same email or LinkedIn URL) is rejected. For many contacts, use the list tools (add_contacts_to_list_bulk) and update_campaign_recipients instead.

  • Add contact to list

    Add a single contact to a list. If the list is used by one or several campaigns, the contact automatically enters those campaigns — this is the standard way to feed a running campaign. Flat object: field names as keys (contact fields like firstName/email/phone/linkedinUrlProfile, company fields like companyName/websiteUrl, or your custom variables — human-readable names work too). Any unrecognized key creates a new custom variable automatically. Duplicates (same email or LinkedIn URL already in the list) are not re-created: the response returns the existing leadId with duplicate: true. Set updateIfExists to true to update the existing contact instead (add-or-update).

  • Add linkedin scraper webhook

    Registers a URL that Emelia calls when this scraper finishes or stops on an error. Register it right after creating the scraper. Several URLs can be registered on the same scraper; the same URL cannot be added twice. **What is sent**: a `POST` with a JSON body `{ "event", "id", "name", "error" }` (see `ScrapperWebhookEvent`). `FINISHED` is sent when the extraction ends (`status` `done`, all chunks included). `ERROR` is sent when the scraper stops with an error code, at most once per hour for the same scraper and code. **Current behavior to know**: every registered URL receives every event, whatever its `events` list; `ERROR` is only sent if at least one registered URL asked for `ERROR`. One attempt only: no retry, no signature, no custom header, so check the scraper with get_linkedin_scraper when you receive a call. Nothing is sent at the end of an enrichment. `events` must contain `FINISHED` or `ERROR`; other values are accepted and ignored. Known issue: the success response is currently an empty JSON object `{}` (no `success` field). Treat HTTP 200 as success.

  • Add to blacklist

    Adds an email address, a bare domain (domain.ltd) or a LinkedIn profile to the account blacklist. The blacklist is account-wide and applies to every current and future campaign.

  • Archive campaign

    Sets the status to ARCHIVED (hidden from list_campaigns). A running campaign must be paused first (pause_campaign).

  • Assign tracking domain

    Sets the tracking domain of one or more mailboxes, replacing the previous one. A `PENDING` domain can be attached: links keep using the shared Emelia domain until it is `OK`. A `DISABLED` domain cannot. Omit `domainId` to detach the domain from these mailboxes without deleting it. Mailbox ids that are not in the account are ignored. Returns `count`, the number of mailboxes changed.

  • Check custom variable

    Tells whether a name is already taken for a schema, either by one of your custom variables (`reason: custom_variable`) or by a standard field (`lead_field` or `company_field`). The name is normalized with the same rule as create_custom_variable and the normalized `technicalName` is returned.

  • Check mailbox health

    Asks for a new DNS, sending and blacklist diagnosis of a mailbox. Asynchronous: the result appears a few minutes later in `health` of get_warmup_status. `warmupId` comes from get_warmup_status; it is not the id of the mailbox. A missing `warmupId` returns `{"success": false, "message": ...}`, not the usual error format.

  • Complete manual task

    Mark a pending manual task as completed ('ok') or failed ('ko') for a contact in a campaign.

  • Connect linkedin scraper account

    Connects a LinkedIn account for Sales Navigator scraping by sending the cookies of a browser session where the user is logged in to LinkedIn and Sales Navigator. No password is involved. The Emelia browser extension does this for you; use this tool to automate it. `li_at` is required. Strongly recommended: `li_a` (Sales Navigator session), `ua` (user agent of the browser the cookies come from), `additionnalsCookie` (the other linkedin.com cookies, as objects `{ name, value, domain }`), `viewport` (that browser window size) and `country` (ISO alpha-2 code: Emelia browses LinkedIn through a proxy located in this country; default the workspace country, then FR). Returns `authId`, to use in `authes` of create_linkedin_scraper. The same `li_at` cannot be registered twice. When a session expires, update the existing account with update_linkedin_scraper_account instead of creating a new one. Emelia stores these cookies and refreshes them after each scraping session. There is currently no tool to remove a connected scraping account. Pitfall: `JSESSIONID` goes inside `additionnalsCookie`. Fields not described here are reserved for Emelia apps.

  • Create account webhook

    Registers a URL that receives the events of the account. Sending a URL that is already registered updates its events. At most 10 URLs per account. **What is sent**: a `POST` with a JSON body `{ "event": "LINKEDIN_ACCOUNT_DISCONNECTED", "account": { "id", "name", "handle" }, "date" }`, once per disconnection. Emelia checks the accounts every 5 minutes; an account already disconnected when the URL is registered is reported once. There is no retry on an HTTP error and a single retry on a network error: read list_linkedin_accounts regularly if no event may be missed. Check the URL with test_account_webhook.

  • Create campaign

    Create a new draft campaign with the given name. The campaign is created empty: set its sequence with update_campaign_steps, its schedule with update_campaign_settings, its sending identities with update_campaign_identities and its contact lists with update_campaign_recipients, then start it with start_campaign. Attach contacts by adding them to a list that the campaign uses.

  • Create custom variable

    Declares a custom variable on the account, so that contact keys with this name (technical or display name) land in it instead of being guessed. Declare your variables before loading contacts. This is the only way to create a COMPANY custom variable: add_contact_to_list and add_contacts_to_list_bulk only create contact (`lead`) variables. Naming rule: a technical name that is already a clean identifier (letter first, then letters, digits or `_`) is kept, with its first letter lowercased (`basile_gmb_name` stays `basile_gmb_name`). Anything else is camelCased with accents and symbols dropped (`Ice breaker` becomes `iceBreaker`). The stored name is returned. The call is refused (422) when a variable with the same name already exists for this schema (comparison ignoring case, spaces, `_` and `-`) or when the name is a standard field of the schema: it is therefore safe to call it every time and treat 422 as already existing. Variables are shared by all your lists and cannot be renamed or deleted through the API.

  • Create email provider

    Adds a mailbox after testing its SMTP and IMAP credentials. The number of mailboxes is limited by your subscription (1 plus the additional mailboxes you pay for). The credentials are tested before saving. For Google and Microsoft accounts prefer the OAuth connection in the Emelia app.

  • Create linkedin connect link

    Creates a secure link to connect a LinkedIn account to the workspace, without handling its credentials: the person opens the link, logs in to LinkedIn on an Emelia page and answers the verification if LinkedIn asks for one. Returns `url` (give it to the user, who forwards it), `token` (follow it with get_linkedin_connect_link) and `expiresAt`. The link is valid for 7 days; asking again for the same `email` returns the same link with a new expiry date. Add `authId` to reconnect an existing account instead of adding a new one, so its campaigns keep it. Each new account takes a LinkedIn slot of the subscription: without a free slot the link is refused with `LINKEDIN_ACCOUNT_LIMIT_REACHED`. With `sendEmail: true`, Emelia emails the link to `email` instead and the link does not expire; a second request for the same address is then refused with `LINKEDIN_INVITATION_PENDING`.

  • Create linkedin scraper

    Starts extracting the people (or companies) of a LinkedIn search into a CSV. The extraction runs in the background on Emelia servers: this call only creates the scraper and returns its id (`scrapId`). Follow it with get_linkedin_scraper or with a webhook (add_linkedin_scraper_webhook). **Accepted URLs and accounts** - Sales Navigator people search (`https://www.linkedin.com/sales/search/people...`), lead list (`.../sales/lists/people/...`) or account search (`.../sales/search/company...`, companies instead of people). `authes` must contain ids of LinkedIn accounts connected for scraping (the `authId` returned by connect_linkedin_scraper_account). - Classic LinkedIn people search (`https://www.linkedin.com/search/results/people/...`). It runs on a LinkedIn account connected for campaigns: `authes` must contain ids of LinkedIn accounts connected for campaigns, not of accounts connected for scraping. - Any other `https://linkedin.com/sales/...` URL is accepted here but the scraper then stops with the error `BAD_SALES_NAV_URL`. **Volume limits** (applied during the extraction, not at creation) - Sales Navigator never returns more than 2,500 results per search (100 pages of 25). Lead lists and saved searches are capped at 2,500, searches filtered on your network (`CONNECTION_OF`) at 1,000, account searches at 1,000 companies, classic searches at 1,000 people. - Grow and Scale plans: a search with 3,000 results or more that contains filters is split automatically into chunks of at most 2,500 (`segmented: true`) and extracted over several days, at 2,500 contacts per day per LinkedIn account (5,000 for an account with a Sales Navigator Advanced seat). Give several accounts in `authes` to go faster. Above 80,000 results the scraper stops with `TOO_MUCH_RESULT`. - Start plan and free use: capped at 2,500, no automatic split. - `max_contacts` stops the extraction early. On Sales Navigator it is applied per page of 25 (you can get up to 25 more) and it is ignored for segmented searches. On classic searches it is exact. **Rules checked by this call**: the name is unique among your scrapers; with a single account and no `plannedStart`, that account must not already run a scraper; every account exists, belongs to you and is valid; `plannedStart` is at least one hour ahead; your workspace has an active subscription, or has not used its free extraction yet, or still has credits (without subscription, extraction costs about 1 credit per 2 contacts and pauses when credits run out). Fields not listed in the schema are rejected.

  • Create list

    Create an empty contact list. Then add contacts with add_contact_to_list or add_contacts_to_list_bulk. Attach the list to a campaign with update_campaign_recipients to have its contacts flow into the campaign automatically.

  • Create tracking domain

    Adds a custom tracking domain to the account, without attaching it to a mailbox (use assign_tracking_domain). The user must then create a CNAME record from this subdomain to `emelia.link` at their DNS host: Emelia checks it about a minute later, then every 15 minutes, and generates the HTTPS certificate. After about 6 failed checks the domain goes `DISABLED` and the user receives an email. Adding a domain that is already in the account returns it; if it was `DISABLED`, its verification starts again.

  • Create webhook

    Registers a URL on an advanced campaign, or on all of them with `ALL_CAMPAIGNS`. The URL then receives a JSON `POST` each time one of the selected events happens. Deliveries are not signed and not retried on HTTP errors. Registering the same URL again on the same campaign adds a second registration, and the URL receives everything twice: to change the events, call delete_webhook first. With `ALL_CAMPAIGNS` the URL is added to the campaigns that are not FINISHED or ARCHIVED and is kept for future campaigns; a campaign that already has the URL keeps its events, and `webhookId` is the id of the account, not of a registration (read the ids with list_webhooks). Check the URL with test_webhook.

Page 1 / 5Next