Skip to main content
Glama

export

Convert Outlook emails into files for archival, forensics, or programmatic processing. Handles single messages, batch queries, full threads, and raw MIME in eml, markdown, JSON, and more.

Instructions

Export emails to file formats for archival, forensics, or programmatic processing. target=message (default) exports a single email by id to savePath — accepts mime/eml/markdown/json/csv. target=messages batch-exports either an explicit emailIds array or messages matching searchQuery (or query shortcut) into outputDir — accepts markdown/json/csv. target=conversation exports a full thread by conversationId into outputDir (chronological by default; pass order: "reverse" for newest-first) — accepts eml/mbox/markdown/json/html/csv. target=mime returns raw RFC-822 MIME bytes for id (use headersOnly for just headers, base64 for encoded transport, maxSize to cap at default 1MB). includeAttachments defaults to true for single-message exports and false for batch. Format support varies by target — see the format param enum.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoEmail ID (target=message/mime, required)
orderNoMessage order (target=conversation, default: chronological)
queryNoFree-text search shortcut (target=messages). Equivalent to passing searchQuery: { subject: <query> }. Convenience alias for callers used to search-emails.
base64NoReturn base64 encoded (target=mime)
formatNoExport format. Valid values vary by target: target=message accepts mime/eml/markdown/json/csv (mbox and html are conversation-only). target=conversation accepts eml/mbox/markdown/json/html/csv. target=messages (batch) accepts markdown/json/csv. mime is an alias for eml (same RFC822 bytes, .eml extension on disk).
targetNoExport target (default: message)
maxSizeNoMax content size in bytes (target=mime, default: 1MB)
emailIdsNoEmail IDs to export (target=messages)
savePathNoFile path or directory (target=message)
outputDirNoOutput directory (target=messages/conversation, required)
headersOnlyNoMIME headers only, no body (target=mime)
searchQueryNoSearch query to find emails (target=messages, alternative to emailIds)
conversationIdNoConversation ID (target=conversation, required)
includeAttachmentsNoInclude attachments (default: true for single, false for batch)
Behavior4/5

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

The description discloses important behavioral details such as default attachment inclusion, format dependencies, and disk-writing intent (savePath, outputDir). While annotations already indicate readOnlyHint=false and destructiveHint=false, the description adds context on side effects and size limits. 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.

Conciseness4/5

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

The description is front-loaded with purpose and organized by target, but it is somewhat lengthy. However, every sentence adds necessary detail for a 14-parameter tool with four modes. It is appropriately structured and not wasteful.

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 the tool's complexity and lack of an output schema, the description covers all four targets, format compatibilities, defaults, and parameter usage. It lacks explicit mention of what the tool returns (e.g., file path or bytes), but it contextually implies file operations. Generally complete for the task.

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

Parameters5/5

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

With 100% schema description coverage, the baseline is high. The description adds significant value by explaining parameter interactions (e.g., target-specific format enums, query shortcut, includeAttachments defaults), going well beyond the schema's individual descriptions.

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 'Export emails to file formats for archival, forensics, or programmatic processing,' specifying the verb and resource. It distinguishes from sibling tools like read-email and attachments by focusing on file export rather than viewing or handling attachments.

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 provides detailed guidance on when to use each target (message, messages, conversation, mime) and explains defaults and alternatives (e.g., emailIds vs searchQuery). However, it does not explicitly contrast with sibling tools or state when not to use this tool.

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/littlebearapps/outlook-mcp'

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