Skip to main content
Glama
MarcinWalendowski

AnyMail MCP

Add a mail account

add_account

Add and verify a mail account, storing its App Password in the macOS Keychain for secure access across providers like Gmail, iCloud, Fastmail, or custom IMAP.

Instructions

Add and verify a mail account, storing its App Password in the macOS Keychain (never in the registry or logs). provider: gmail (default) | icloud | fastmail | imap. For 'imap' pass imapHost + smtpHost (ports default to 993 / 465, or 587 with smtpStartTls). SECURITY: the App Password is an argument to this call, so it passes through the agent's context and the MCP client's logs. For the most private path, add accounts in the app's GUI instead — there the password goes straight to the local engine and the model never sees it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesThe account's email address.
imapHostNoIMAP host (required for provider 'imap', e.g. imap.host.tld).
imapPortNoIMAP port (default 993).
providerNoMail provider (default gmail). Presets cover gmail/icloud/fastmail; 'imap' needs custom hosts.
readOnlyNoRefuse all writes for this account.
smtpHostNoSMTP host (required for provider 'imap', e.g. smtp.host.tld).
smtpPortNoSMTP port (default 465, or 587 with smtpStartTls).
appPasswordYesApp Password / IMAP password. Stored only in the Keychain.
displayNameNo
makeDefaultNoMake this the default account.
smtpStartTlsNoUse STARTTLS on 587 instead of implicit TLS on 465.
Behavior4/5

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

Describes security behavior: password stored in Keychain, not registry/logs, and warns that password passes through context/logs. This adds value beyond the openWorldHint annotation. Some details on verification behavior are missing.

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?

Two focused sentences plus a security note. Efficiently front-loaded with main action. Could be slightly more structured, but no waste.

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

Completeness3/5

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

No output schema, and description does not explain return value or error behavior. It lacks details on what 'verify' entails or failure handling. Adequate but incomplete.

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?

Schema coverage is high (91%), but description adds context: provider defaults, port defaults, STARTTLS. It explains the purpose of parameters beyond the schema, like security context for appPassword.

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

Purpose5/5

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

The description clearly states 'Add and verify a mail account' with a specific verb and resource. It distinguishes from sibling tools by focusing on account creation, unlike message management or label tools.

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?

Provides explicit guidance on providers, default ports, and when to use GUI for privacy. It also explains required parameters for 'imap' provider, giving clear context and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarcinWalendowski/anymail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server