Skip to main content
Glama
bes-mcp

bes-mcp

by sean3808

Export original message to a host folder

mail_original_export
Idempotent

Export a stored message's original .msg or .eml file from its PST or IMAP source to a host folder for opening in Outlook to verify tables or layout.

Instructions

Retrieve one stored message's original file from its source (PST via Outlook saved as .msg, or mail server via IMAP saved as .eml) into a host folder so the user can open it in Outlook to verify tables or original layout. message_id is the stored integer message id (or its decimal string). dest_dir must be an absolute host path of at most 200 characters. Never overwrites. When neither source still holds the message, returns status not_found with the subject, sender, and sent date instead of failing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message_id": "<message_id>",
      "dest_dir": "<dest_dir>"
    },
    "name": "mail_original_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
dest_dirYes
message_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses the no-overwrite guarantee (consistent with destructiveHint=false and idempotentHint=true) and, importantly, the degraded path: when neither source still holds the message it returns status not_found with subject, sender and sent date rather than failing. It does not discuss permissions, whether dest_dir must already exist, or write failures — modest remaining gaps.

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?

Three sentences, front-loaded with the action and destination, then the parameter constraints, then the failure behavior. No filler or restatement of the title.

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

Completeness5/5

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

The tool is simple (two required params, output schema present), and the description covers action, source-specific format, destination constraints, and non-happy-path return. There is nothing an agent needs in order to invoke it correctly that is left unstated.

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?

Schema description coverage is 0%, so the description must carry the parameters, and it does: message_id is 'the stored integer message id (or its decimal string)' and dest_dir is 'an absolute host path of at most 200 characters'. Both accepted types and the path constraint are spelled out, fully compensating for the bare 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?

The description names a specific verb and resource ('Retrieve one stored message's original file from its source') and pins down the artifact and destination ('into a host folder', '.msg'/'eml'). The phrase 'original file from its source' separates it from viewers like mail_show and from attachment-oriented siblings without needing to name them.

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 gives a concrete motivating use case ('so the user can open it in Outlook to verify tables or original layout'), which is enough for an agent to decide between this and a content-rendering tool. There is no explicit 'do not use when' or named alternative, which keeps it 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.