delete_folder

MCP tool from Email Agent MCP by UseJunior

Delete a custom folder (requires operator env + caller flag); system folders are protected (Microsoft 365)

How to use it

Project documentation lists delete_folder for the Email Agent MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.

Install Email Agent MCP

$npx -y email-agent-mcp
FULL EMAIL AGENT MCP LISTING

Other tools in Email Agent MCP (32)

body_file

a path to a .md, .html, or .txt file (read relative to

bodyFormat

always present: markdown, html, or text. You get text

bodyTruncated

present and true only if the body exceeded the 256 KB

cancel_scheduled_send

Cancel a pending scheduled send (Microsoft 365)

contract.pdf

EMAILMCPSAFEDIR (default: cwd)

create_draft

Create email draft

create_folder

Create a custom child folder (Microsoft 365)

create_inbox_rule

Create a persistent safe inbox rule; forwarding, redirection, deletion, and discarding to Deleted Items are blocked (Microsoft 365)

delete_email

Delete (requires operator env + caller flag)

delete_inbox_rule

Delete a server-side inbox rule (requires operator env + caller flag) (Microsoft 365)

download_attachment

Download a file attachment as base64

flag_email

Flag/unflag emails

get_mailbox_status

Connection status and warnings

get_thread

Full conversation context

html

Passthrough — your HTML is sent as-is.

label_email

Apply labels/categories

list_attachments

List attachment metadata for an email

list_emails

List recent emails with filtering

list_folders

Recursively list folders and computed paths (Microsoft 365)

list_inbox_rules

List server-side inbox rules (Microsoft 365)

list_mailboxes

Enumerate configured mailboxes, their status, and the default

list_scheduled_sends

List pending provider-held scheduled sends (Microsoft 365)

mark_read

Mark as read/unread

move_to_folder

Move between folders

observe

Mail.Read, User.Read, offlineaccess

read_email

Read full email content as markdown, or raw HTML with format: "html"

reply_to_email

Reply within thread (allowlist-gated on send)

search_emails

Full-text search across mailboxes

send_draft

Send a saved draft

send_email

Send new email (allowlist-gated)

text

No rendering; sent as plain text.

update_draft

Update draft content