Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

get_inbox_summary

Retrieve email summary counts including total, unread, and recent messages from your iCloud mailbox to monitor inbox status.

Instructions

Get a summary of a mailbox including total, unread, and recent email counts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mailboxNoMailbox name (default INBOX)
accountNoAccount name to use (e.g. 'icloud', 'gmail'). Defaults to first configured account. Use list_accounts to see available accounts.

Implementation Reference

  • The `getInboxSummary` tool returns the count of total, unread, and recent messages for a given IMAP mailbox.
    if (uids.length === 0) { await client.logout(); return { deleted: 0, sourceMailbox }; }
    
    let deleted = 0;
    for (let i = 0; i < uids.length; i += CHUNK_SIZE) {
      const chunk = uids.slice(i, i + CHUNK_SIZE);
      const chunkIndex = Math.floor(i / CHUNK_SIZE);
      try {

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/adamzaidi/icloud-mcp'

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