Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

find_email_folder

Read-only

Identify the real mailbox folder containing an email, required before moving or deleting emails found in virtual folders like All Mail or Starred.

Instructions

Find which real mailbox folder(s) an email belongs to. Required before move_email or delete_email when the email was found in a virtual folder (e.g., "All Mail", "Starred"). Returns the real folder path to use as sourceMailbox.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount name from list_accounts
emailIdYesEmail ID (UID) from list_emails
sourceMailboxNoMailbox where the email is currently visible (e.g., "All Mail")INBOX
Behavior4/5

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

Annotations already indicate readOnlyHint=true, and the description adds useful context by explaining the return value and its role as a prerequisite for mutation tools. It does not contradict annotations and provides behavioral context beyond what annotations offer.

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?

Two sentences with no wasted words. Front-loaded with the main purpose, then providing usage conditions and output expectation. Highly concise and well-structured.

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 no output schema, the description explains the return value and its use. For a simple lookup tool, it covers when to use and what to expect. Could mention error cases or limitations but is mostly complete.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the purpose of the sourceMailbox parameter (virtual folder context) and tying account/emailId to other tools. It also clarifies the output nature (returns real folder path).

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?

Description clearly states verb 'find' and resource 'real mailbox folder', distinguishing it from sibling tools like move_email and delete_email by indicating it is a prerequisite. The purpose is specific and unambiguous.

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

Usage Guidelines5/5

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

Explicitly specifies when to use ('Required before move_email or delete_email when email found in virtual folder') and what the return value provides ('real folder path to use as sourceMailbox'). Clear guidance on context and action.

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