Skip to main content
Glama
Leonamin

Naver Mail MCP Server

by Leonamin

create_folder

Create new email folders in your Naver Mail account to organize messages and improve inbox management.

Instructions

새 메일 폴더 생성

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_nameYes생성할 폴더 이름

Implementation Reference

  • The actual implementation of the folder creation logic using imap_tools mailbox.folder.create.
    def create_folder(self, folder_name: str) -> None:
        """
        폴더를 생성합니다.
        """
        with self._get_mailbox_client() as mailbox:
            mailbox.folder.create(folder_name)
  • server.py:109-122 (registration)
    The Tool definition for create_folder in the MCP server list_tools.
    Tool(
        name="create_folder",
        description="새 메일 폴더 생성",
        inputSchema={
            "type": "object",
            "properties": {
                "folder_name": {
                    "type": "string",
                    "description": "생성할 폴더 이름"
                }
            },
            "required": ["folder_name"],
        }
    ),
  • The MCP tool handler that invokes MailService.create_folder when the 'create_folder' tool is called.
    elif name == "create_folder":
        folder_name = args.get("folder_name")
        if not folder_name:
            return [TextContent(type="text", text="폴더 이름이 필요합니다.")]
    
        mail_service.create_folder(folder_name)
        return [TextContent(type="text", text=f"폴더 '{folder_name}'가 성공적으로 생성되었습니다.")]

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