Skip to main content
Glama
aliyun

AlibabaCloud DevOps MCP Server

Official
by aliyun

create_workitem_attachment

Uploads a local file as an attachment to a work item. Returns embed URLs and markdown for inserting into work item descriptions.

Instructions

[Project Management] Upload a local file as an attachment to a work item via multipart/form-data. MCP Server reads the file at the given absolute path and uploads it. Supports any file type (单文件 ≤ 10MB,云效不支持 svg/tiff)。 返回 WorkitemFile 含以下关键字段:

  • id/name/size/suffix:文件基础信息

  • url:OSS 临时下载地址,约 30 秒过期。⚠️ ��用于下载,不要嵌入工作项描述/评论

  • embedUrl:永久代理 URL,适用于在工作项描述/评论中嵌入图片

  • embedMarkdown:预拼好的 Markdown 图片标签,formatType=MARKDOWN 时拼接进 description 即可

  • embedHtml:预拼好的 HTML 标签,formatType=RICHTEXT 时拼接进 description 即可 在工作项描述中插入图片的标准三步法:① 创建工作项(如已有则跳过);② 调本工具上传图片、读出 embedMarkdown / embedHtml;③ 调 update_work_item,在 updateWorkItemFields.description 中拼入该 embed* 字段,同时设置 updateWorkItemFields.formatType 为 "MARKDOWN" 或 "RICHTEXT"。 应用 token 场景必传 operatorId,个人 token 必传可省略。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYes本地文件的绝对路径,MCP Server 将读取该文件并上传为工作项附件
operatorIdNo操作者的userId,个人token时该参数无效
workItemIdYes工作项唯一标识
organizationIdYesOrganization ID, can be found in the basic information page of the organization admin console
Behavior4/5

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

With no annotations, the description must fully disclose behavioral traits. It does so by explaining that the MCP Server reads the file from an absolute path, supports any file type except SVG/TIFF, and limits file size to 10MB. It also describes the response fields and their intended use (e.g., url expiry). This provides sufficient transparency for safe invocation.

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

Conciseness4/5

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

The description is front-loaded with the core purpose and then provides structured details on response fields and usage steps. While somewhat lengthy, every part adds value for proper usage. It is not overly verbose given the complexity of the tool and its integration with other operations.

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's complexity (upload, response handling, integration with update_work_item), the description covers essential aspects: file type/size limits, response field semantics, and a step-by-step guide for embedding images. Without an output schema, it thoroughly explains return values. However, it omits error handling and permission requirements.

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?

All four parameters have schema descriptions (100% coverage), so the baseline is 3. The description adds context for operatorId (application token scenario) and clarifies that filePath is an absolute path. However, the schema already covers parameter meanings, and the description does not significantly enhance understanding. The ambiguous token statement slightly detracts.

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?

The description clearly states the action: 'Upload a local file as an attachment to a work item'. It specifies the method (multipart/form-data) and the resource (work item). However, it does not explicitly differentiate from sibling tools like create_work_item_comment or update_work_item, though the context implies attachment-specific functionality.

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?

The description provides a three-step method for using the tool to embed images in work item descriptions, which gives clear usage context. It also explains token scenarios. However, it lacks explicit guidance on when not to use this tool or alternative approaches for attaching files, and the token requirement statement is somewhat contradictory ('必传可省略').

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/aliyun/alibabacloud-devops-mcp-server'

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