Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

remove_label

Idempotent

Remove a specified label from an email across supported email services, including removing from a label folder or removing a keyword flag.

Instructions

Remove a label from an email. For ProtonMail, this removes the email from the label folder. For Gmail and standard IMAP, this removes a keyword flag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesLabel name to remove
accountYesAccount name from list_accounts
emailIdYesEmail ID (UID) from list_emails
mailboxYesMailbox containing the email (must be a real folder)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate idempotentHint=true and destructiveHint=false, and the description adds provider-specific behavior (ProtonMail vs. Gmail/IMAP). This is good additional context beyond the annotations, though more details on permissions or side effects could be included.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the primary action, and contains no superfluous information. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple nature of the tool, the description combined with the schema covers the essential information. However, it lacks mention of return values or any error conditions, which would enhance completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with adequate parameter descriptions. The tool description does not add extra meaning beyond what is already in the schema, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool removes a label from an email, with specific provider behaviors for ProtonMail (removes from label folder) and Gmail/IMAP (removes keyword flag). This distinguishes it from sibling tools like add_label and delete_label.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The tool's purpose is clear and context is provided via provider behavior differences. However, it does not explicitly discuss when to use this tool versus alternatives (e.g., moving an email out of a folder) or any prerequisites, but given the naming and sibling list, usage is reasonably implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/codefuturist/email-mcp'

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