Skip to main content
Glama

unmark_flagged

Remove flagged status from emails in the Mail MCP Server. This tool clears starred markers from messages to help organize your inbox by unmarking previously flagged items.

Instructions

Unmark email as flagged (remove starred)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoFolder containing the email (default: INBOX)INBOX
message_idNoMessage ID (sequence number)
uidNoUnique ID of the message

Implementation Reference

  • Implementation of the unmark_flagged logic.
    def unmark_flagged(self, folder: str, uids: int | list[int]) -> bool:
        """
        Remove flagged/starred status from emails.
    
        Args:
            folder: Folder containing the emails
            uids: Email UID or list of UIDs
    
        Returns:
            True if successful
    
        Raises:
            EmailFlagsError: If operation fails
        """
        return self._store_flags(folder, uids, "-FLAGS", self.FLAG_FLAGGED)
  • Tool definition and registration for unmark_flagged.
    Tool(
        name="unmark_flagged",
        description="Unmark email as flagged (remove starred)",
        inputSchema={
            "type": "object",
            "properties": {
                "folder": {
                    "type": "string",
                    "description": "Folder containing the email (default: INBOX)",
                    "default": "INBOX",
                },
                "message_id": {
                    "type": "string",
                    "description": "Message ID (sequence number)",
                },

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/AdJIa/mail-mcp-server'

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