Test a source connection
test_connectionTests a connected mailbox: reading (IMAP) and drafting/sending (SMTP). Returns ok for each, and when it fails an errorCode with a plain explanation (wrong or expired app password, IMAP disabled, server unreachable...). Diagnoses a mailbox that shows status ERROR in list_accounts or that mail tools fail to reach. Also tests an OpenAI Ads account (type openai_ads): whether its API key still opens the ad account, and a Microsoft Advertising account (type microsoft_ads): whether its access still lists the ad accounts, an Aircall account (type aircall): whether its API key still opens the company, and a Bing Webmaster Tools account (type bing_webmaster): whether its access still lists the sites, a Pexels account (type pexels): whether its API key is still accepted, with the remaining request quota, a Shutterstock account (type shutterstock): whether its access still opens the account, and a Twilio account (type twilio): whether its API key still opens the Twilio account. Mail, OpenAI Ads, Microsoft Advertising, Aircall, Bing Webmaster, Pexels, Shutterstock and Twilio accounts only.
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": {
"accountId": "<accountId>"
},
"name": "test_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Account id, as returned by list_accounts. |