Skip to main content
Glama
al-one

MCP Server for notify to weixin / telegram / bark / lark

wework_send_news

Send rich media messages with titles, links, and images to WeChat Work group chats using webhook integration for team notifications and announcements.

Instructions

通过企业微信群机器人发送图文链接消息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bot_keyNo企业微信群机器人key,uuid格式,默认从环境变量获取
descriptionNo描述,不超过512个字节
picurlNo图片URL
titleYes标题,不超过128个字节
urlYes跳转链接,必填

Implementation Reference

  • Handler function for 'wework_send_news' tool: sends news (link article) message via WeWork group robot webhook API using provided title, url, picurl, description, and bot_key.
    @mcp.tool( title="企业微信群机器人-发送图文消息", description="通过企业微信群机器人发送图文链接消息", ) def wework_send_news( title: str = Field(description="标题,不超过128个字节"), url: str = Field(description="跳转链接,必填"), picurl: str = Field("", description="图片URL"), description: str = Field("", description="描述,不超过512个字节"), bot_key: str = FIELD_BOT_KEY, ): res = requests.post( f"{WEWORK_BASE_URL}/cgi-bin/webhook/send?key={bot_key or WEWORK_BOT_KEY}", json={ "msgtype": "news", "news": { "articles": [ { "title": title, "description": description, "url": url, "picurl": picurl, }, ], }, }, ) return res.json()
  • Registration of WeWork tools (including wework_send_news) by calling add_tools on the FastMCP instance.
    wework.add_tools(mcp)
  • Pydantic Field definitions for input parameters of the wework_send_news tool, defining schema with descriptions and defaults.
    title: str = Field(description="标题,不超过128个字节"), url: str = Field(description="跳转链接,必填"), picurl: str = Field("", description="图片URL"), description: str = Field("", description="描述,不超过512个字节"), bot_key: str = FIELD_BOT_KEY,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/al-one/mcp-notify'

If you have feedback or need assistance with the MCP directory API, please join our Discord server