SendBridge MCP
Open the app

Email Validation

start_bulk_validation

Start a bulk validation. Validate a list of up to 10,000 addresses in the background.

Action 1 credit per address, charged as results come in scope: validation asks first

Asks first. Without confirm: true this tool changes nothing and returns a preview of what would happen and what it would cost. The assistant shows you the preview and calls again with the confirmation only after you agree.

What it does

For anything bigger than a handful of addresses. You paste or attach the list in the chat, your assistant hands it to SendBridge, and the validation runs in the background on the same workers the app uses. A few hundred addresses take a couple of minutes, ten thousand noticeably longer.

The first call is always a preview: how many addresses were accepted, how many lines were not addresses, how many duplicates were dropped, and what the job will cost at most. Nothing starts until you agree.

When to use it

  • Cleaning a list before a campaign.
  • Checking a batch of new sign-ups or imported leads.
  • Lists over 10,000 addresses: split them into several calls, or upload the file in the app.

Try asking

  • Validate this list and tell me which addresses to remove: (paste)
  • How much would it cost to validate these 800 addresses?
  • Go ahead and start it.

Parameters

NameTypeRequiredDescription
emailsstring[]requiredThe addresses to validate, one per item.
namestringoptionalName for the batch, shown in the app (letters, digits, dashes). Optional.
confirmbooleanoptionalLeave out (or false) to get a preview of what would happen and what it costs; nothing is changed. Set to true only after the user has agreed to the preview.

Result

Fields of data. Every result also has a meta object with mode, credits_charged, credits_remaining and request_id.

NameTypeDescription
confirmation_requiredbooleantrue = this is only a preview; nothing was started.
messagestringPreview text to show the user.
batch_tokenstringIdentifier of the started batch.
namestring
statestring
acceptedintegerAddresses that will be validated.
invalid_skippedintegerLines that are not an email address.
duplicates_removedinteger
credits_needednumberUpper bound of the cost.
credits_availablenumber
enough_creditsboolean
already_startedbooleantrue = the same list was started a moment ago; this is that batch.
poll_after_secondsinteger

Example

Call

What the assistant sends. Your MCP client adds the protocol envelope and headers itself.

tools/call
{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "start_bulk_validation",
        "arguments": {
            "emails": [
                "jane.doe@example.com",
                "sales@example.org",
                "old.account@example.net"
            ],
            "name": "March leads",
            "confirm": true
        }
    }
}

Result

The tool result carries this object as structuredContent and, for clients that read text, the same JSON as a text block.

structuredContent
{
    "data": {
        "confirmation_required": false,
        "batch_token": "demoBatch0000000000000000000002",
        "name": "March-leads",
        "state": "loading",
        "accepted": 3,
        "invalid_skipped": 0,
        "duplicates_removed": 0,
        "credits_needed": 3,
        "already_started": false,
        "poll_after_seconds": 20
    },
    "meta": {
        "request_id": "req_9f2c11ab22cd33ef44aa55bb66cc",
        "mode": "live",
        "credits_charged": 0,
        "credits_remaining": 4820
    }
}

In test mode

A test key previews and "starts" a demo batch without storing anything. The batch tools then return the same finished sample batch.

Good to know

  • When the balance runs out in the middle of a batch, the batch pauses with state "insufficient_credits" and continues after a top-up.
  • The batch also appears under Validation Results in the app, where it can be downloaded as CSV or XLSX.

Errors

invalid_requestAn argument is missing, has the wrong type or is out of range.
unprocessableThe request is valid but cannot be carried out: the item already exists, a plan limit is reached, or the item is in the wrong state.
not_enough_creditsThe balance does not cover the action.
rate_limitedToo many tool calls in a minute, or a daily fair-use limit was reached.
forbiddenThe account may not do this yet, most often because its email address is not confirmed.

What the assistant is told

This is the description your assistant reads when it decides whether to use the tool:

Starts a background validation of a list of email addresses (up to 10,000 per call) and returns a batch_token. Invalid lines and duplicates are dropped before the count. Costs 1 credit per address, taken one address at a time as results come in; addresses without a final result are not charged. Without confirm=true nothing is started: you get a preview with the number of accepted addresses, the credits needed and whether the balance is enough. Show that to the user, then call again with the same list and confirm=true. Afterwards poll get_validation_batch (every 20 seconds or slower) until state is "completed", then read get_validation_results. Starting the same list twice within 15 minutes returns the first batch instead of a second one.

Documentation