WeCom Bot MCP Server

send_message

Send text or markdown messages to WeCom, including user mentions, via the WeCom Bot MCP Server. Supports asynchronous communication and message tracking for efficient team collaboration.

Instructions

Send message to WeCom.

Args: content: Message content msg_type: Message type (text, markdown) mentioned_list: List of mentioned users mentioned_mobile_list: List of mentioned mobile numbers ctx: FastMCP context Returns: dict: Response containing status and message Raises: WeComError: If message sending fails

Input Schema

NameRequiredDescriptionDefault
contentYes
ctxNo
mentioned_listNo
mentioned_mobile_listNo
msg_typeNomarkdown

Input Schema (JSON Schema)

{ "$defs": { "Context": { "description": "Context object providing access to MCP capabilities.\n\nThis provides a cleaner interface to MCP's RequestContext functionality.\nIt gets injected into tool and resource functions that request it via type hints.\n\nTo use context in a tool function, add a parameter with the Context type annotation:\n\n```python\n@server.tool()\ndef my_tool(x: int, ctx: Context) -> str:\n # Log messages to the client\n ctx.info(f\"Processing {x}\")\n ctx.debug(\"Debug info\")\n ctx.warning(\"Warning message\")\n ctx.error(\"Error message\")\n\n # Report progress\n ctx.report_progress(50, 100)\n\n # Access resources\n data = ctx.read_resource(\"resource://data\")\n\n # Get request info\n request_id = ctx.request_id\n client_id = ctx.client_id\n\n return str(x)\n```\n\nThe context parameter name can be anything as long as it's annotated with Context.\nThe context is optional - tools that don't need it can omit the parameter.", "properties": {}, "title": "Context", "type": "object" } }, "properties": { "content": { "title": "Content", "type": "string" }, "ctx": { "anyOf": [ { "$ref": "#/$defs/Context" }, { "type": "null" } ], "default": null }, "mentioned_list": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Mentioned List" }, "mentioned_mobile_list": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Mentioned Mobile List" }, "msg_type": { "default": "markdown", "title": "Msg Type", "type": "string" } }, "required": [ "content" ], "title": "send_messageArguments", "type": "object" }

You must be authenticated.

Other Tools from WeCom Bot MCP Server

Related Tools

ID: amr2j23lbk