Skip to main content
Glama
Soundhannes

IMAP MCP Server

by Soundhannes

mark_read

Mark specific emails as read in an IMAP mailbox to manage unread message counts and organize email workflows.

Instructions

Mark emails as read

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidsYesEmail UIDs
mailboxNoMailbox name (default: current)

Implementation Reference

  • The implementation of the mark_read tool in the ImapClientWrapper class.
    def mark_read(self, uids: list[int], mailbox: Optional[str] = None) -> bool:
        """Mark emails as read."""
        self._ensure_connected()
        if mailbox:
            self.select_mailbox(mailbox)
        self.client.add_flags(uids, [b"\\Seen"])
        return True
  • The registration of the mark_read tool in the MCP server handler.
    elif name == "mark_read":
        return imap_client.mark_read(

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/Soundhannes/IMAP-MCP'

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