Skip to main content
Glama

get-mail-message-mime

get-mail-message-mime
Read-only

Retrieve the full raw MIME source of an Outlook email by its message ID, preserving all original headers and inline attachments for archiving. Returns the .eml content as text.

Instructions

Download the raw MIME source (RFC 822 .eml content) of an Outlook email message by its message ID. Returns the complete original message including headers and encoded attachments.

đź’ˇ TIP: Download an email message as raw RFC 5322 MIME content (.eml format). Use this when archiving an email to disk preserving all original headers, body, and inline-encoded attachments. Returns the MIME stream as text. Find the message id with list-mail-messages first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageIdYesValue for the 'messageId' path segment. Pass it under the name 'messageId', not as 'id'. Use the 'id' field of the message object as returned by Microsoft Graph.
fetchAllPagesNoFollow @odata.nextLink and merge up to 100 pages into one response. Can return enormous payloads—only when the user explicitly needs a full export. Prefer a small $top first, then paginate or narrow with $filter/$search.
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication
includeHiddenMessagesNoInclude Hidden Messages
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description is consistent. It adds value by specifying the return type ('MIME stream as text'), including headers/attachments, and warning about fetchAllPages potentially returning enormous payloads—beyond what annotations provide.

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

Conciseness4/5

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

The description is compact with a clear first sentence, followed by a tip that adds context but somewhat redundantly restates the core purpose. No wasted words, but the tip could be trimmed. Front-loaded purpose and immediate actionable guidance.

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?

For a read-only download tool with 5 parameters and no output schema, the description covers purpose, usage scenario, return type, and how to obtain the required ID. It warns about the risk of large payloads via fetchAllPages. It does not explain failure modes or the behavior of includeHiddenMessages, but those are covered in the schema, so completeness is adequate.

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 detailed parameter descriptions (e.g., 'messageId' explains the naming and source, 'fetchAllPages' warns about large payloads). The description adds a tip about finding the message id earlier but does not enhance parameter understanding beyond the schema. Baseline 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 action ('Download the raw MIME source'), the resource (Outlook email message), and the method (by message ID). It explicitly differentiates from similar tools like get-mail-message (JSON retrieval) and gives a concrete use case (archiving to .eml).

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?

It provides a clear use case ('when archiving an email to disk') and tells the agent to find the message id with list-mail-messages first. However, it does not explicitly mention alternatives like get-mail-message, so the agent must infer that this is for raw MIME rather than structured data.

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/A-Impact-Pavel/ms365-mcp'

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