Skip to main content
Glama
Leonamin

Naver Mail MCP Server

by Leonamin

mark_mails_important

Mark specific emails as important in your Naver Mail account to prioritize them in your inbox and ensure they receive attention during mail management.

Instructions

메일을 중요 상태로 변경

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mail_uidsYes중요 처리할 메일들의 UID 목록

Implementation Reference

  • The core logic for marking mails as important, using the imap_tools library to flag the emails.
    def mark_as_important(self, mail_uids: List[str]) -> None:
        """
        메일을 중요 상태로 변경합니다.
        중요 상태는 메일 클라이언트에서 중요 표시로 표시됩니다.
        """
        with self._get_mailbox_client() as mailbox:
            mailbox.flag(mail_uids, '\\Flagged', True)
  • server.py:239-250 (registration)
    Tool registration for mark_mails_important in the server.py file.
    Tool(
        name="mark_mails_important",
        description="메일을 중요 상태로 변경",
        inputSchema={
            "type": "object",
            "properties": {
                "mail_uids": {
                    "type": "array",
                    "items": {"type": "string"},
                    "description": "중요 처리할 메일들의 UID 목록"
                }
            },
  • Handler in server.py that orchestrates the tool call by invoking mail_service.mark_as_important.
    elif name == "mark_mails_important":
        mail_uids = args.get("mail_uids", [])
    
        if not mail_uids:
            return [TextContent(type="text", text="중요 처리할 메일 UID 목록이 필요합니다.")]
    
        mail_service.mark_as_important(mail_uids)
        return [TextContent(type="text", text=f"{len(mail_uids)}개의 메일이 중요 상태로 변경되었습니다.")]

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/Leonamin/NaverMail-MCP-Server'

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