Skip to main content
Glama

add_mailbox

Destructive

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

NameRequiredDescriptionDefault
nameNoName of the mailbox
emailYesEmail address
use_sslNoUse SSL/TLS for the IMAP connection
from_nameNoSender display name
imap_hostNoIMAP server host name for reading
imap_portNoIMAP server port
imap_userNoIMAP login user name
skip_testNoOhne Verbindungstest speichern — nur wenn der Server gerade nicht erreichbar ist.
smtp_hostNoSMTP server host name for sending
smtp_portNoSMTP server port
smtp_userNoSMTP login user name
imap_folderNoIMAP folder to read
imap_passwordNoIMAP login password
smtp_passwordNoSMTP login password
is_default_senderNoNimmt Mails auf, deren Absenderadresse zu keinem Postfach passt. Hoechstens eines je Mandant.
smtp_implicit_tlsNotrue = TLS ab Verbindungsaufbau (465), false = STARTTLS (587).
smtp_allow_plaintextNoOhne Verschluesselung senden. Standard nein.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / properties / email / description
      Added value: +"Email address"
    • addedInput schema / properties / from_name / description
      Added value: +"Sender display name"
    • addedInput schema / properties / imap_folder / description
      Added value: +"IMAP folder to read"
    • addedInput schema / properties / imap_host / description
      Added value: +"IMAP server host name for reading"
    • addedInput schema / properties / imap_password / description
      Added value: +"IMAP login password"
    • addedInput schema / properties / imap_port / description
      Added value: +"IMAP server port"
    • addedInput schema / properties / imap_user / description
      Added value: +"IMAP login user name"
    • addedInput schema / properties / name / description
      Added value: +"Name of the mailbox"
    • addedInput schema / properties / smtp_host / description
      Added value: +"SMTP server host name for sending"
    • addedInput schema / properties / smtp_password / description
      Added value: +"SMTP login password"
    • addedInput schema / properties / smtp_port / description
      Added value: +"SMTP server port"
    • addedInput schema / properties / smtp_user / description
      Added value: +"SMTP login user name"
    • addedInput schema / properties / use_ssl / description
      Added value: +"Use SSL/TLS for the IMAP connection"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (destructive=true, idempotent=false, openWorld=true), it discloses that both sides are tested before the row is written, that results are reported per side, and that matching is by address so repeat calls mutate rather than duplicate. What it does not disclose is the destructive side: when updating an existing mailbox, which stored fields are overwritten or cleared by omitted parameters is left unstated, and the skip_test escape hatch in the schema is never mentioned in the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior and required/optional parameter map are front-loaded in the first two sentences, and the rate of useful information stays high. The closing OAuth paragraph is longer than it needs to be and could be compressed without losing the guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter, destructive, no-output-schema tool, the description covers the establishing facts an agent needs: upsert-by-address, per-side testing, and the provider exclusion. It falls short on update-time overwrite semantics and on the undocumented skip_test path, which are the two things most likely to cause an unintended destructive change.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the baseline is 3, but the description adds real grouping meaning the schema lacks: imap_* parameters are for reading, smtp_* for sending, from_name is what recipients see, and the SMTP-only subset has a distinct behavior. The one gap is skip_test, which the prose implicitly contradicts by asserting the mailbox is always tested before writing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Add or update a mailbox the agents may read AND send from" gives a specific verb, resource and scope, plus explicit upsert semantics ("calling it again for the same address updates that mailbox instead of adding a second"). It clearly separates itself from the browser OAuth integration path, but never mentions the sibling add_workspace_mailbox, so the sibling boundary is only partly drawn.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states when to use it (IMAP/SMTP with a password only) and when not to (Gmail/Outlook, which must go through Integrations -> Mailboxes -> Connect Gmail/Connect Outlook because OAuth needs a consent screen), plus the concrete failure mode of trying basic auth on those providers. It also gives the partial-argument case: passing only the SMTP half adds sending to an existing read-only mailbox.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.