Skip to main content
Glama
leeguooooo
by leeguooooo

list_emails

Retrieve emails from multiple accounts with pagination, filtering by unread status, folder, and account ID using live IMAP or local cache.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of emails to return (default: 50)
offsetNoNumber of emails to skip for pagination (default: 0)
unread_onlyNoOnly return unread emails (default: true)
folderNoEmail folder to fetch from (default: 'all' = no folder filter when using cache; falls back to INBOX for live IMAP)all
account_idNoSpecific account to fetch from (optional)
include_metadataNoInclude source metadata (cache/fetch) in results (default: true)
use_cacheNoUse local sync cache (email_sync.db) instead of live IMAP when available

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