Skip to main content
Glama
MailCraft MCP Server

MailCraft MCP Server

by jhonsu01

Convert / merge mail files

convert_mail

Convert or merge .eml, .mbox, .pst, and mailbox files into one .mbox or MailCraft mailbox, calendars into .ics, contacts into .vcf, or a single message into .eml without altering inputs.

Instructions

Convert or merge mail files: messages (.eml, .mbox, .pst, a mailbox) into one .mbox or one MailCraft .mailcraft mailbox, calendars into .ics, contacts into .vcf, or a single message of a mailbox into .eml. Inputs are never changed; the output is a new file (next to the first input or in output_dir; never replaced unless overwrite).

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": {
      "input_paths": "<input_paths>",
      "format": "<format>"
    },
    "name": "convert_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoeml: the message id (list_messages).
nameNoFile name without extension (default: the first input's).
folderNombox from a mailbox: the folder (id, kind or path; default inbox).
formatYes
overwriteNo
output_dirNo
input_pathsYesAbsolute mail files: a .mailcraft mailbox and / or .eml, .mbox, .ics, .vcf, .pst files (read only, never changed).
output_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false; the description adds real behavior: inputs are never modified, output is always a new file, and existing files are never replaced unless overwrite is set. That is strong disclosure for a write tool, though it omits what happens on partial/multi-input merges.

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?

Two dense sentences front-load the conversion targets and then the output/immutability behavior; nearly every clause carries information. The nested parentheticals make it slightly harder to scan but nothing is wasted.

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?

Covers the essential contract for a non-trivial 8-parameter conversion tool with no output schema: what is produced, where it goes, and that inputs stay untouched. Gaps remain around mixed input types and how id/folder select a single eml message, but the core is present.

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 50%, with format, overwrite, output_dir and output_path undocumented in the schema. The description compensates by explaining the format-driven outputs, output_dir placement, and overwrite protection, but leaves id, folder, name and output_path unexplained, so it lands at baseline adequacy.

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?

States specific verbs (convert, merge) and enumerates the exact resource conversions: messages to .mbox/.mailcraft, calendars to .ics, contacts to .vcf, single message to .eml. An agent can immediately tell this is a format-conversion tool, distinct from siblings like read_message or open_in_mailcraft.

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?

Usage context is clear from the enumerated conversion matrix and the output-placement rules (output next to first input or in output_dir). It does not explicitly name a sibling alternative or state when not to use it, so it falls 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.