Skip to main content
Glama
Albretsen

MCP Emails

Folders & Labels

folder
Destructive

List, create, rename, or delete email labels in your mailbox. Manage Gmail labels and IMAP folders.

Instructions

Manage mailbox folders, which are labels on Gmail: the arguments say 'folder' for cross-provider compatibility, but Gmail returns and manages labels (type: 'label'). 'list' needs read:email, the rest manage:folders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName of the new folder or label.
inboxNoInbox email address; an alternative to inbox_id, which wins when both are given.
actionYesOperation to run. list = every folder with its id and message counts; create = a folder called `name`; rename = folder_id to new_name; delete = folder_id, irreversibly.
inbox_idNoInbox UUID. Optional when the key has exactly one inbox. Otherwise pass this or `inbox`; omit both and the error lists every inbox_id.
new_nameNoNew display name.
folder_idNoFolder id from action: list. On IMAP this is the mailbox name (e.g. 'INBOX/Work'), on Gmail the label id.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.4

TDQS

A3.8/5.0
Behavior4/5

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

Given the annotations already mark it non-read-only and destructive, the description adds useful behavioral context: Gmail labels are returned/managed instead of folders, and action-specific permission scopes are disclosed. No contradiction with annotations.

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?

A single dense sentence that front-loads the main purpose and then adds two high-value clarifications (Gmail label equivalence and permission split). No wasted words.

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?

The description plus a rich schema covers the tool's four actions, required parameters, provider-specific behavior, and permissions. It omits any mention of alternatives, but that gap is captured under usage_guidelines; overall context is sufficient for a competent agent.

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 description coverage is 100% and the schema already explains each parameter, including the Gmil vs IMAP interpretation of folder_id. The tool description adds only the cross-provider framing, which helps conceptual understanding but does not significantly extend the schema's param-level documentation.

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

Purpose4/5

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

Description states a clear verb-resource pair: 'Manage mailbox folders', and adds the critical nuance that on Gmil these are labels. It does not explicitly differentiate itself from siblings like email_organize, but the core purpose is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied rather than explicitly scoped: an agent can infer to use this tool when managing folders/labels. It provides permission guidance ('list needs read:email, the rest manage:folders') but does not name alternatives or state when NOT to use it.

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

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/Albretsen/MCPEmails'

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