Skip to main content
Glama
leeguooooo
by leeguooooo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FEISHU_WEBHOOKNoFeishu/Lark webhook URL for notifications
OPENAI_API_KEYNoOpenAI API key for AI filtering (optional)

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
list_emails

List emails from inbox (supports multi-account). UIDs are scoped to each account—pass account_id for deterministic follow-up actions. Performs live IMAP fetch; failures usually indicate network or credential issues.

get_email_detail

Get detailed content of a specific email including body and attachments. Requires IMAP connectivity to download the latest message content.

mark_emails

Mark one or more emails as read or unread. Pass account_id when operating within a single account, or provide email_accounts mapping for mixed-account batches.

mark_email_read

Mark a single email as read (account_id optional but recommended to avoid cross-account lookup).

mark_email_unread

Mark a single email as unread (account_id optional but recommended).

batch_mark_read

Mark multiple emails as read

delete_emails

Delete one or more emails (move to trash or permanently delete). Provide account_id or email_accounts mapping so each UID can be routed to the right mailbox.

delete_email

Delete a single email (move to trash or permanently delete). account_id optional but recommended.

batch_delete_emails

Delete multiple emails (move to trash or permanently delete)

search_emails

Search emails with various criteria across all accounts or specific account. Returned UIDs must be used with the same account; specify account_id for precise targeting.

send_email

Send a new email with optional attachments via SMTP. Ensure the account has SMTP server configuration and valid credentials.

reply_email

Reply to an email (preserves thread). Requires SMTP access for the originating account.

forward_email

Forward an email to other recipients using SMTP credentials of the selected account.

list_folders

List all email folders/labels in the account (IMAP). Provide account_id to target a specific mailbox.

move_emails_to_folder

Move emails to a different folder. Requires IMAP access; pass account_id (or use per-email mapping in mark/delete first) so UIDs match the correct account.

flag_email

Flag/star or unflag an email. Runs against the live mailbox—account_id recommended to avoid cross-account lookups.

get_email_attachments

Extract attachments from an email by downloading them over IMAP. Requires a reachable mailbox and may incur network latency.

analyze_contacts

Analyze contact frequency and communication patterns using the local sync database. Works only after emails have been synchronized to the cache.

get_contact_timeline

Get communication timeline with a specific contact from the local sync cache (no live IMAP).

list_unread_folders

List folders with unread counts per configured account. Requires live IMAP connectivity; returns empty list when the mailbox cannot be reached.

get_email_headers

Fetch only email headers (From, To, Subject, Date, Message-ID, etc.) without downloading the body. account_id recommended so the UID lookup hits the right mailbox.

get_recent_activity

Return recent sync activity/health per account based on local cache data.

check_connection

Test email server connections (IMAP and SMTP) for all configured accounts using stored credentials.

list_accounts

List all configured email accounts

get_version

Get MCP Email Service version and git commit

sync_emails

Unified email synchronization tool: start/stop scheduler, force sync, get status, search cache, manage config (action: start|stop|force|status|search|recent|config). Operates on the local sync service and databases.

get_sync_health

Get sync health status for all accounts or a specific account based on cached sync metrics (no live IMAP).

get_sync_history

Get synchronization history for all accounts or a specific account within specified hours from the local sync logs.

get_connection_pool_stats

Get IMAP connection pool statistics from the local sync service, including connection reuse rate and active connections (no remote calls).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/leeguooooo/email-mcp-service'

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