SendBridge MCP
Open the app

Mail Tester

create_mail_test

Create a mail test. Get a unique address to send a test email to.

Action Free to create; 200 credits when the test email arrives scope: mailtester

What it does

The first half of a mail test. You get an address that belongs only to this test. Send the email you want checked to that address, from the tool or server you really use for sending, because the result depends on the sending IP, the DNS of your domain and the exact content.

Your assistant cannot send the email for you. It gives you the address, and once you say the email is on its way it reads the report with get_mail_test.

When to use it

  • Before a campaign, to see the spam score and authentication results.
  • After a DNS change (SPF, DKIM, DMARC), to confirm it works.
  • When mail started landing in spam and you want to know why.

Try asking

  • I want to test my newsletter before sending. Give me a test address.
  • Create a mail test for the "Black Friday" campaign.

Parameters

NameTypeRequiredDescription
referencestringoptionalOptional note of your own, echoed back (for example the campaign name).

Result

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

NameTypeDescription
test_tokenstringIdentifier to pass to get_mail_test.
email_addressstringSend the test email to this address.
expires_atstring | null
poll_after_secondsintegerWait at least this long between get_mail_test calls.
referencestring | null

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": "create_mail_test",
        "arguments": {
            "reference": "Black Friday campaign"
        }
    }
}

Result

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

structuredContent
{
    "data": {
        "test_token": "demo00000001",
        "email_address": "demo@test.sendbridge.com",
        "expires_at": "2027-01-04T01:24:21Z",
        "poll_after_seconds": 5,
        "reference": "Black Friday campaign"
    },
    "meta": {
        "request_id": "req_9f2c11ab22cd33ef44aa55bb66cc",
        "mode": "live",
        "credits_charged": 0,
        "credits_remaining": 4820
    }
}

In test mode

A test key always returns the demo address demo@test.sendbridge.com and get_mail_test returns a finished sample report. No email needs to be sent.

Good to know

  • If no email is ever sent to the address, nothing is charged.
  • When the balance is too low for a test, the address is not created and the tool says how many credits are missing.

Errors

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 deliverability test and returns a unique test address. Nothing is tested yet: the user (or their sending system) must now send the real email to email_address, from the system that will send the campaign. Then call get_mail_test with the test_token to read the report. Creating the address is free; the test costs 200 credits, charged once when the email arrives. The address stays valid for 30 days. You cannot send the email yourself.

Documentation