Skip to main content
Glama
aiguicai

WeCom Mail MCP

by aiguicai

Send Email

send_email

Send plain-text or HTML emails through the WeCom official mail API. The sender is fixed to the current app mailbox; set content_type=html for compatible HTML content.

Instructions

通过企业微信官方邮件 API 发送普通邮件。发件人固定为当前应用邮箱账号。如果发送 HTML 邮件,请显式传 content_type=html,并只使用邮件兼容写法:优先用 table/tbody/tr/td 做布局,样式尽量写 inline style。稳定标签:table、tbody、tr、td、p、br、span、strong、b、em、i、h1-h4、a、img。避免 script、iframe、form、video、audio、canvas、svg、外链 CSS、flex、grid、position、web font、相对路径和网页式复杂模板。图片请使用公网 https 绝对地址。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes邮件正文。如果发送 HTML 邮件,请显式传 content_type=html,并只使用邮件兼容写法:优先用 table/tbody/tr/td 做布局,样式尽量写 inline style。稳定标签:table、tbody、tr、td、p、br、span、strong、b、em、i、h1-h4、a、img。避免 script、iframe、form、video、audio、canvas、svg、外链 CSS、flex、grid、position、web font、相对路径和网页式复杂模板。图片请使用公网 https 绝对地址。HTML 骨架建议:<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><h2 style="margin:0 0 16px;">标题</h2><p style="margin:0 0 12px;">正文</p><a href="https://example.com">链接</a><img src="https://example.com/demo.png" alt="" style="display:block;width:100%;height:auto;border:0;"></td></tr></table>
subjectYes邮件主题
to_emailYes收件人邮箱地址,例如 user@example.com
content_typeNo正文类型。支持 text、html、text/plain、text/html。默认 text。如果正文是 HTML,请显式传 html 或 text/html,并遵守邮件兼容 HTML 限制。text

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
messageNo邮件已通过企业微信官方邮件 API 发送。
subjectYes
providerNowecom
to_emailYes
content_typeYes
sender_emailYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the fixed sender identity and the HTML rendering restrictions (tags that survive vs. those stripped), which is genuine behavioral context. However, for a tool that fires irreversible outbound email, it says nothing about required permissions, rate limits, or delivery failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and sender constraint are correctly front-loaded, but roughly 80% of the text is an HTML compatibility list that is repeated word-for-word in the schema's content field. The repetition bloats the definition without adding new information.

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?

An output schema exists and all four parameters are fully documented, so the agent has what it needs to construct a call. The main gap is behavioral rather than structural: nothing covers failure modes, throttling, or whether the send is authenticated as the app identity.

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 100%, and the HTML guidance in the description is duplicated almost verbatim in the content parameter's own description, so the prose adds no meaning beyond the schema. Baseline 3 is correct when the schema does the heavy lifting.

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?

States a specific verb and resource ('通过企业微信官方邮件 API 发送普通邮件') and adds a real scoping fact: the sender is fixed to the current app mailbox account. It does not explicitly differentiate from the only sibling, get_mailbox_info, but that sibling is a read tool on a different resource, so confusion risk is low.

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

Usage Guidelines3/5

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

There is no explicit when-to-use/when-not-to-use or alternative routing, though as the sole send tool the implied usage is clear. The conditional guidance it does give is parameter-level (pass content_type=html for HTML bodies), not tool-selection guidance.

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

Deploy Server

Other Tools