Skip to main content
Glama
chandshy
by chandshy

Get Email by ID

get_email_by_id
Read-only

Retrieve a single email's body, attachment metadata, and flags using its ID. Required after listing or searching emails to get full content.

Instructions

Fetch a single email's full content including body, attachment metadata (no binary content), isAnswered, and isForwarded flags. Use the id returned by get_emails or search_emails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYesIMAP UID from get_emails or search_emails
folderNoFolder the email lives in (e.g. INBOX, Sent, Drafts). Providing this avoids a cross-folder UID collision.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
fromYes
toNo
ccNo
subjectYes
bodyYes
isHtmlNo
dateYes
folderNo
isReadYes
isStarredNo
hasAttachmentNo
isAnsweredNoTrue if the email has been replied to (\Answered IMAP flag)
isForwardedNoTrue if the email has been forwarded ($Forwarded IMAP flag)
attachmentsNo
Behavior4/5

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

Annotations already indicate readOnlyHint and openWorldHint. Description adds valuable behavioral details: includes body, attachment metadata (no binary), isAnswered, isForwarded flags. 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?

Two sentences, front-loaded with action and content. Efficient, no wasted words. Second sentence gives practical usage hint.

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 output schema exists and annotations cover safety, the description adequately covers purpose, usage, and behavioral details. Could mention output format but not necessary with output schema.

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 good descriptions for both parameters. The main description adds minimal new param info (only repeats emailId source). Folder parameter is not mentioned in main description, so no extra semantic value beyond schema.

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 'Fetch a single email's full content' with specific inclusions (body, attachment metadata, flags). Distinguishes from siblings like get_emails (list) and search_emails (search) by focusing on a single email by ID.

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?

Explicitly instructs to use the ID from get_emails or search_emails, providing clear when-to-use guidance. The folder parameter hint about avoiding UID collision adds context. No explicit exclusions but sufficient for selection.

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/chandshy/mailpouch'

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