# test_email_account (/docs/mcp/tools/test-email-account)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/test_email_account.mdx. */}

**Test mailbox settings** · Read-only · Acts outside your account

Connects to the SMTP and IMAP servers with these settings and says whether sending and reading work, without saving anything. Use it before add_email_account. Passwords are only used for the test.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `smtpEmail` | `string` | Yes | Login for sending, usually the mailbox address. |
| `smtpHost` | `string` | Yes | SMTP server, e.g. smtp.gmail.com. |
| `smtpPort` | `number` | Yes | SMTP port, e.g. 465 or 587. |
| `smtpTLS` | `boolean` | Yes | true for SSL/TLS. |
| `imapEmail` | `string` | Yes | Login for reading replies, usually the mailbox address. |
| `imapHost` | `string` | Yes | IMAP server, e.g. imap.gmail.com. |
| `imapPort` | `number` | Yes | IMAP port, usually 993. |
| `imapTLS` | `boolean` | Yes | true for SSL/TLS. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "test_email_account",
  "title": "Test mailbox settings",
  "annotations": {
    "title": "Test mailbox settings",
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": true
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "smtpEmail": {
        "type": "string",
        "description": "Login for sending, usually the mailbox address."
      },
      "smtpHost": {
        "type": "string",
        "description": "SMTP server, e.g. smtp.gmail.com."
      },
      "smtpPort": {
        "type": "number",
        "minimum": 1,
        "maximum": 65535,
        "description": "SMTP port, e.g. 465 or 587."
      },
      "smtpTLS": {
        "type": "boolean",
        "description": "true for SSL/TLS."
      },
      "imapEmail": {
        "type": "string",
        "description": "Login for reading replies, usually the mailbox address."
      },
      "imapHost": {
        "type": "string",
        "description": "IMAP server, e.g. imap.gmail.com."
      },
      "imapPort": {
        "type": "number",
        "minimum": 1,
        "maximum": 65535,
        "description": "IMAP port, usually 993."
      },
      "imapTLS": {
        "type": "boolean",
        "description": "true for SSL/TLS."
      }
    },
    "required": [
      "smtpEmail",
      "smtpHost",
      "smtpPort",
      "smtpPassword",
      "smtpTLS",
      "imapEmail",
      "imapHost",
      "imapPort",
      "imapPassword",
      "imapTLS"
    ]
  }
}
```
