Skip to main content
Glama
Leonamin

Naver Mail MCP Server

by Leonamin

move_mails

Move emails between folders in your Naver Mail account. Specify mail UIDs and target folder name to organize your inbox efficiently.

Instructions

메일을 다른 폴더로 이동

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mail_uidsYes이동할 메일들의 UID 목록
folder_nameYes이동할 대상 폴더 이름

Implementation Reference

  • The actual business logic that performs the mail moving operation in the mail service.
    def move_mails(self, mail_uids: List[str], folder_name: str) -> None:
        """
        메일을 폴더로 이동합니다.
        """
        with self._get_mailbox_client() as mailbox:
            mailbox.move(mail_uids, folder_name)
  • The handler logic in the MCP server that extracts arguments and calls the mail service to move mails.
    elif name == "move_mails":
        mail_uids = args.get("mail_uids", [])
        folder_name = args.get("folder_name")
    
        if not mail_uids or not folder_name:
            return [TextContent(type="text", text="메일 UID 목록과 폴더 이름이 필요합니다.")]
    
        # 폴더 존재 여부 확인
        if not mail_service.is_folder_exists(folder_name):
            return [TextContent(type="text", text=f"폴더 '{folder_name}'가 존재하지 않습니다.")]
    
        mail_service.move_mails(mail_uids, folder_name)
        return [TextContent(type="text", text=f"{len(mail_uids)}개의 메일이 '{folder_name}' 폴더로 성공적으로 이동되었습니다.")]
  • server.py:156-168 (registration)
    MCP Tool registration for 'move_mails' with its input schema.
    Tool(
        name="move_mails",
        description="메일을 다른 폴더로 이동",
        inputSchema={
            "type": "object",
            "properties": {
                "mail_uids": {
                    "type": "array",
                    "items": {"type": "string"},
                    "description": "이동할 메일들의 UID 목록"
                },
                "folder_name": {
                    "type": "string",

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