Skip to main content
Glama

projectman__DeleteAttachment

Removes an attachment from a Huawei Cloud project work item and deletes it when the file was uploaded on the work item page.

Instructions

[PROJECTMAN] 取消工作项与附件关联,如附件为工作项页面上传则删除附件

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "attachment_id": "<attachment_id>",
      "issue_id": "<issue_id>",
      "project_id": "<project_id>"
    },
    "name": "projectman__DeleteAttachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
issue_idYes工作项id
project_idYesdevcloud项目的32位id
attachment_idYes附件id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose an important nuance — the attachment record itself is destroyed only if it was uploaded on the work item page, otherwise it is merely unlinked — but it says nothing about irreversibility, required permissions, or what the call returns on success/failure.

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?

A single compact sentence that front-loads the primary effect and appends the conditional deletion clause. The only waste is the '[PROJECTMAN]' tag prefix.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, three-required-parameter tool with no annotations and no output schema, the description covers the core effect and the conditional delete but leaves the result of the operation, safety/permission expectations, and failure modes unstated.

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%, with all three path parameters documented (issue_id, project_id with a 32-char pattern, attachment_id). The description adds no further meaning about how those identifiers interact, so the baseline 3 applies.

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 names a specific verb+resource pair: unlinking a work item from an attachment (取消工作项与附件关联), plus a conditional escalation to full deletion. That is far more precise than the tool name DeleteAttachment alone, though it never explicitly contrasts itself with siblings such as DownloadAttachment.

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?

Usage is implied by the verb — call this when an attachment should no longer be associated with an issue — but there is no explicit when-to-use/when-not-to-use guidance, no prerequisites (e.g., permissions or attachment state), and no named alternative tool.

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

Deploy Server

Other Tools