Skip to main content
Glama
concurrent2024

mcp-email-server

Read an email

read_email
Read-only

Open an email by its IMAP UID to get the message body, headers, and attachment list. Returns plain text, converts HTML-only messages, and marks truncation instead of silently cutting off long content.

Instructions

Open one message and return its body, headers, and attachment list.

Bodies are returned as plain text; HTML-only messages are converted, and long bodies are truncated with a marker rather than silently cut.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesIMAP UID, as returned by search_emails.
folderNoFolder the message is in.INBOX
mark_as_readNoSet the Seen flag as a side effect of reading.
max_body_charsNoOverride the configured body length limit.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNo
toNo
uidYes
bodyNoPlain-text body. HTML-only mail is converted to text.
dateNo
seenNo
sizeNo
folderYes
senderNo
flaggedNo
subjectNo
reply_toNo
truncatedNoTrue when the body was cut short at the configured limit.
message_idNoRFC 5322 Message-ID, used for threading replies.
referencesNo
attachmentsNo
in_reply_toNo
sender_nameNo
body_is_converted_htmlNoTrue when the message had no plain-text part and the body was derived from HTML.
Behavior4/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses useful return-behavior details: HTML-only messages are converted to plain text, and long bodies are truncated with a marker rather than silently cut. This helps the agent set expectations about the content it will receive. It does not discuss error behavior or rate limits, but with read-only annotation coverage this is adequate.

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 short sentences front-load the core behavior and then add the only critical output caveat about body conversion and truncation. There is no filler, repetition, or unnecessary detail.

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?

With an output schema, 100% parameter coverage, and read-only annotations, the description covers the important behavioral caveats. A minor gap is the lack of an explicit pointer to download_attachment for attachment content, but the phrase 'attachment list' already distinguishes the tool from that sibling.

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%, so the parameters are already well documented. The description adds no parameter-specific meaning beyond confirming that body, headers, and attachment list are returned; therefore the baseline score of 3 applies.

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 uses a specific verb and resource: 'Open one message and return its body, headers, and attachment list.' This clearly identifies the operation and distinguishes it from sibling tools like search_emails (finding messages) and download_attachment (fetching attachment bytes).

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 description implies the intended flow: after search_emails returns a UID, open that message. The uid parameter description reinforces this by saying the UID comes from search_emails. However, the description itself does not explicitly list when not to use this tool or direct the agent to download_attachment for actual attachment content, so it stops short of a 5.

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

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