Skip to main content
Glama
liuyuming0823

DingTalk Robot MCP

send_single_message

Send DingTalk messages to up to 20 users via user IDs or names, supporting text, markdown, images, links, action cards, files, audio, and video.

Instructions

Send a message to one or more DingTalk users (max 20). Supports text, markdown, image, link, actionCard (single/multi button), file, audio, video. Recipients can be specified via userIds (numeric) and/or userName (exact name search). Both arrays are merged, deduplicated, and sent as a single batch call. Use upload_media first for image/file/audio/video to get a mediaId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
btnsNo(for msgtype=actionCard_multi) Array of button objects, 1-6 buttons
textNo(for msgtype=actionCard_*) Card body in Markdown format
titleNo(for msgtype=actionCard_*) Card title
widthNo(for msgtype=video) Display width in px, default 600
heightNo(for msgtype=video) Display height in px, default 400
picUrlNo(for msgtype=link) Optional preview image URL
contentNo(for msgtype=text) Plain text message content
mediaIdNo(for msgtype=audio) mediaId from upload_media
msgtypeNoMessage type. Supported: text, markdown, image, link, actionCard_single, actionCard_multi, file, audio, video.
userIdsNoArray of DingTalk numeric user IDs. Max 20 total recipients across userIds + userName. For a single recipient, pass a 1-element array (e.g. ["011950195121139389"]).
durationNo(for msgtype=video) Duration in seconds
fileNameNo(for msgtype=file) File display name, e.g. "report.pdf"
fileTypeNo(for msgtype=file) File extension: xlsx, pdf, zip, rar, doc, docx
photoURLNo(for msgtype=image) Image URL or mediaId (use upload_media to get mediaId)
userNameNoArray of exact user names to search and resolve to user IDs. If any name matches multiple users, the entire batch will fail with a list of duplicates. Max 20 total recipients across userIds + userName.
singleURLNo(for msgtype=actionCard_single) Button URL
videoTypeNo(for msgtype=video) Video format, default "mp4"
messageUrlNo(for msgtype=link) URL to open when clicking the link
picMediaIdNo(for msgtype=video) Cover image mediaId from upload_media
singleTitleNo(for msgtype=actionCard_single) Button title
videoMediaIdNo(for msgtype=video) Video mediaId from upload_media
btnOrientationNo(for msgtype=actionCard_*) Button layout: 0=vertical, 1=horizontal
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses that recipient arrays are merged and deduplicated, that the call is a single batch operation, and that duplicate name matches cause the entire batch to fail. This goes beyond the bare operation and gives critical operational insight, though it omits details like return responses or error handling.

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?

The description is three sentences and front-loaded with the core purpose, followed by recipient behavior and a concrete prerequisite. Every sentence carries essential information; there is no filler or repetition of schema enum values.

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?

Given the tool has 22 parameters, no output schema, and no annotations, the description covers the most critical operational context: batch semantics, deduplication, max recipients, name-match failure mode, and the upload_media prerequisite. It lacks explicit return value or error code information, but for such a many-parameter tool it is remarkably complete and actionable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful cross-parameter semantics: it explains the relationship between userIds and userName (merged, deduplicated, max 20), states that media types require a mediaId from upload_media, and clarifies that userName matches must be exact. This adds value beyond the individual schema field descriptions.

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 clearly states the tool sends a message to DingTalk users, enumerates supported message types, and specifies recipient resolution via userIds and userName. It distinguishes itself from the sibling send_group_message by focusing on user-targeted (not group) messaging and details the max 20 recipient batch behavior.

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

Usage Guidelines4/5

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

The description gives explicit guidance on when to use upload_media first for media types, and heavily documents recipient constraints (max 20, exact name search, duplicate handling). It does not explicitly contrast with send_group_message, but the tool name and description imply direct-user versus group context, making the usage intent clear.

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

Install Server

Other Tools

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/liuyuming0823/dingtalk-robot-mcp'

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