Skip to main content
Glama
liuyuming0823

DingTalk Robot MCP

upload_media

Upload a local media file to DingTalk and receive a mediaId, required for sending image, voice, video, or file messages. Handles image, audio, video, and document types up to 20MB.

Instructions

Upload a local media file to DingTalk and get a mediaId. Required before sending image, file, audio, or video messages. Supported file types: image (jpg/png/gif/bmp, max 20MB), voice (amr/mp3/wav, max 2MB), video (mp4, max 20MB), file (doc/docx/xls/xlsx/ppt/pptx/zip/pdf/rar, max 20MB).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to the local file to upload
mediaTypeYesMedia type: image, voice, video, or file
Behavior3/5

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

Since no annotations are provided, the description carries the burden of disclosing behavior. It explains the upload action, the returned mediaId, and file size restrictions, but lacks details on authentication requirements, failure behavior, or idempotency.

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 two sentences, front-loaded with the primary action and outcome, followed by constraints. Every sentence provides value and there is no redundancy or fluff.

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 simple upload tool with complete schema coverage and no output schema, the description covers the essential context: when to use it, what it returns, and what constraints apply. It could mention error scenarios, but overall it is sufficiently complete.

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% for the two parameters, so the schema already documents them sufficiently. The description adds file type and size constraints, which are helpful but not necessary for understanding individual parameters.

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's function: 'Upload a local media file to DingTalk and get a mediaId.' It uses a specific verb ('Upload') and resource ('media file'), and distinguishes it from sibling tools that send messages.

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 explicitly states when to use the tool: 'Required before sending image, file, audio, or video messages.' It also provides file type and size limits, giving clear context for usage. However, it does not explicitly reference sibling tools or state when not to use it.

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