Skip to main content
Glama
BigCactusLabs

dead-letter

convert_eml_to_bundle

Convert .eml files into self-contained bundles with markdown and extracted attachments, stripping signatures and tracking pixels for clean ingestion into LLM pipelines.

Instructions

Convert a .eml file to a self-contained bundle with markdown and attachments.

Creates a directory containing the converted markdown, extracted attachments, and optionally the original .eml source.

source_handling controls the original .eml:

  • copy (default): copy into bundle, leave original untouched

  • move: move original into bundle

  • delete: remove original after successful conversion

Returns JSON with bundle_path, markdown_path, attachment_paths, and optional diagnostics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
presetNodefault
eml_pathYes
bundle_rootYes
thread_modeNolatest
thread_orderNooldest-first
source_handlingNocopy
include_raw_htmlNo
strip_signaturesNo
strip_disclaimersNo
embed_inline_imagesNo
include_all_headersNo
no_calendar_summaryNo
strip_quoted_headersNo
strip_tracking_pixelsNo
strip_signature_imagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It explains the core conversion and source handling (copy/move/delete), including that delete is destructive. However, it omits side effects like disk space, file permissions, or time cost. It also doesn't mention whether the operation is reversible. Adequate but not exhaustive.

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 concise (a few sentences) and front-loaded with the primary action. It logically flows from purpose to source_handling options to return format. However, it could be more structured by grouping related parameters or adding a brief overview of all parameter categories.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (15 parameters, no annotations, no schema param descriptions), the description is incomplete. It fails to explain most options (preset, thread mode, various stripping flags). While the output schema exists and the description mentions return fields, it does not provide enough context for correct invocation of all parameters.

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

Parameters2/5

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

Schema description coverage is 0%, meaning no parameter descriptions in the schema. The description only elaborates on source_handling. The other 14 parameters (preset, thread_mode, strip_signatures, etc.) are entirely undocumented in both schema and description. This is a major gap; the description should compensate but does so minimally.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool converts .eml to a self-contained bundle with markdown and attachments. It specifies the output structure (directory) and source handling options. However, it does not explicitly differentiate from siblings like convert_eml or convert_directory, missing an opportunity to help the agent choose the right tool.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives. The description does not mention use cases, prerequisites, or exclusions. Given siblings like convert_eml and convert_directory, explicit usage context would be valuable. Without annotations, the description should bear this burden but fails.

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/BigCactusLabs/dead-letter'

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