add_mailbox
Add or update a mailbox the agents may read AND send from. Required: email. Optional: name, from_name (what recipients see), imap_host/imap_port/imap_user/imap_password/imap_folder/use_ssl for reading, smtp_host/smtp_port/smtp_user/smtp_password/smtp_implicit_tls for sending, is_default_sender, smtp_allow_plaintext. Both sides are TESTED before the row is written and the result is reported per side — a mailbox that fails when it is set up is worth far more than one that fails at the first real send. Matching is by address: calling it again for the same address updates that mailbox instead of adding a second. Passing only the SMTP half adds sending to an existing read-only mailbox. This tool is for IMAP/SMTP with a password ONLY: Gmail and Outlook mailboxes are connected in the browser (Integrations -> Mailboxes -> Connect Gmail / Connect Outlook), because OAuth needs a consent screen that no tool call can stand in for. Do not try IMAP with the account password for those two - both providers switched basic auth off, so it cannot work.
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": {
"email": "<email>"
},
"name": "add_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the mailbox | |
| Yes | Email address | ||
| use_ssl | No | Use SSL/TLS for the IMAP connection | |
| from_name | No | Sender display name | |
| imap_host | No | IMAP server host name for reading | |
| imap_port | No | IMAP server port | |
| imap_user | No | IMAP login user name | |
| skip_test | No | Ohne Verbindungstest speichern — nur wenn der Server gerade nicht erreichbar ist. | |
| smtp_host | No | SMTP server host name for sending | |
| smtp_port | No | SMTP server port | |
| smtp_user | No | SMTP login user name | |
| imap_folder | No | IMAP folder to read | |
| imap_password | No | IMAP login password | |
| smtp_password | No | SMTP login password | |
| is_default_sender | No | Nimmt Mails auf, deren Absenderadresse zu keinem Postfach passt. Hoechstens eines je Mandant. | |
| smtp_implicit_tls | No | true = TLS ab Verbindungsaufbau (465), false = STARTTLS (587). | |
| smtp_allow_plaintext | No | Ohne Verschluesselung senden. Standard nein. |