Skip to main content
Glama

Connect a mailbox (SMTP/IMAP)

create_mailbox

Connect a sending mailbox with SMTP/IMAP credentials. The connection is tested BEFORE anything is saved, so a wrong password returns an error and creates nothing. Use an app password (Gmail and Microsoft 365 require one), never the account's main password: the value passes through this conversation. Give host when SMTP and IMAP share a host, otherwise smtp_host and imap_host. Defaults: SMTP 587, IMAP 993, username = email, daily_limit from the workspace default. Hosts on private networks are refused. Google/Microsoft OAuth sign-in cannot be done here: use the app for that. Ask the user for the details; do not guess hosts. New mailboxes should warm up before heavy sending.

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>",
      "password": "<password>"
    },
    "name": "create_mailbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoOne host for both SMTP and IMAP (many business providers). Otherwise send smtp_host and imap_host.
emailYesMailbox address.
passwordYesApp password (never the main account password).
usernameNoLogin if different from the address.
from_nameNoSender name shown to recipients.
imap_hostNo
imap_portNoDefault 993.
smtp_hostNo
smtp_portNoDefault 587.
daily_limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which only say write, open-world, non-idempotent, non-destructive), the description discloses the crucial testing-before-saving contract: a wrong password returns an error and creates nothing. It adds the security context that the password passes through the conversation and must be an app password, plus the private-network refusal rule.

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 most important facts (what it does, the test-before-save guarantee, the app-password requirement) are front-loaded, and every sentence is dense with actionable content. It runs long and the closing warm-up note is only loosely tied to the creation call, so it is not a perfect 5.

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 10-parameter write tool with no output schema and thin annotations, the description covers the risky parts well: credential handling, host selection, defaults, and failure behavior. It stops short of describing what a successful connection returns or how verification errors are surfaced, which would complete the picture.

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 70% schema coverage the baseline is 3, but the description adds real meaning: the conditional rule that `host` covers both when SMTP and IMAP share a host and otherwise smtp_host/imap_host are needed, plus defaults for ports, username, and daily_limit. It does not explain from_name or the daily_limit semantics much beyond the default, keeping it from a 5.

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?

The description opens with a specific verb and resource ('Connect a sending mailbox with SMTP/IMAP credentials'), which is clearly distinct from get_mailbox and update_mailbox by intent. It does not explicitly name a sibling to steer away from, so it falls just short of full sibling differentiation.

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 the exclusions directly: OAuth sign-in cannot be done here, private-network hosts are refused, and the agent should ask the user for details rather than guess hosts. It also names the alternative path for OAuth ('use the app for that') and adds a when-to guidance about warming up before heavy sending.

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.