Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

发送邮件

mail_send

Sends an email immediately through the school SMTP server to specified recipients, with optional CC, BCC, HTML body, and attachments. Use only when the user explicitly asks to send, since the message is delivered right away.

Instructions

通过学校 SMTP 直接发送邮件(会真的发出去)。除非用户明确要求发送,否则优先用 mail_draft 存草稿让用户过目。

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_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo抄送
toYes收件人,多个用逗号分隔
bccNo密送
bodyYes正文(纯文本)
htmlNoHTML 正文(可选)
subjectYes主题
attachmentsNo附件数组。写法一:["D:\\a\\b.pdf"];写法二给显示名:["报告.pdf=D:\\a\\b.pdf"];写法三对象:{path:"D:\\a\\b.pdf", filename:"报告.pdf"}。相对路径按工作区解析。单个上限 20 MB,合计 25 MB。
save_to_sentNo是否再往「已发送」里补一份(学校 SMTP 通常自动存),默认 false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does disclose the single most important trait: messages are actually dispatched and cannot be unsent. It adds no detail on authentication requirements, failure handling, or whether a failed send raises an error, but the SMTP transport and irreversibility are the core risks and they are covered.

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?

Two short sentences, zero filler, with the side-effect warning front-loaded ahead of the routing advice. Every clause earns its place.

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 destructive send tool with no annotations, the description covers the essential facts an agent needs to call it safely: real delivery plus the draft-first default. The remaining gaps, such as error reporting and whether the sent folder is populated, are either schema-documented (save_to_sent) or minor for a tool with no output schema.

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%, with every parameter including recipients, subject, body, cc/bcc, html, attachments, and save_to_sent documented inline, so the baseline of 3 applies. The description contributes no additional semantics about parameter behavior or interactions between plain-text body and html body.

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 states a concrete verb and resource (send mail via the school SMTP server) and immediately qualifies it with '(会真的发出去)', so the agent knows this is a real outbound send rather than a simulation. It also implicitly contrasts with the drafting sibling, so it cannot be confused with mail_draft.

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?

It gives an explicit default policy: unless the user explicitly asks to send, prefer mail_draft so the user can review first. The alternative tool is named and the condition that selects it is stated outright, leaving nothing for the agent to infer.

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