Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

起草邮件并存入草稿箱

mail_draft

Save an email to the IMAP Drafts folder without sending it, so you can review or edit the message before sending.

Instructions

把一封邮件写进邮箱的草稿箱(IMAP Drafts),不发送。适合「先拟好,我自己再改改看」的场景。发送请用 mail_send。

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": {
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "mail_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo抄送,多个用逗号分隔
toYes收件人,多个用逗号分隔
bodyYes正文(纯文本)
htmlNoHTML 正文(可选,给了就同时带 HTML 版)
subjectYes主题
attachmentsNo附件数组。写法一:["D:\\a\\b.pdf"];写法二给显示名:["报告.pdf=D:\\a\\b.pdf"];写法三对象:{path:"D:\\a\\b.pdf", filename:"报告.pdf"}。相对路径按工作区解析。单个上限 20 MB,合计 25 MB。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden; it does disclose the two most important side effects (created in the IMAP Drafts folder, never sent). It says nothing about whether repeated calls create duplicate drafts, whether the saved draft is immediately visible in the mailbox, required account/auth state, or how failures surface — gaps that matter for a write operation with zero annotation coverage.

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 short sentences, front-loaded with the action and destination, then the scenario, then the redirect to the sibling. No redundant restatement of the title or schema.

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 6-parameter write tool with no output schema, the description covers purpose, destination, non-sending semantics, and the sibling redirect, which is enough to call it correctly. The remaining gap is the return value — with no output schema, an agent cannot tell whether it gets back a draft ID/UID for later reference.

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 description coverage is 100% and the schema is unusually rich (attachment path/display-name/object forms, 20 MB per-file and 25 MB total limits, cc/to comma-separated convention), so the baseline of 3 applies. The description adds no parameter-level meaning of its own, though nothing is lost since the schema documents everything.

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 a specific verb and destination (把邮件写进草稿箱 / IMAP Drafts) plus the crucial negative scope (不发送), which distinguishes it cleanly from mail_send and the other mail_* siblings.

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

Usage Guidelines5/5

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

Gives an explicit use case (「先拟好,我自己再改改看」) and names the alternative tool for the other branch (发送请用 mail_send), so the agent can route between drafting and sending without inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.