Skip to main content
Glama
Polarion MCP Server — 2023 兼容版

Polarion MCP Server — 2023 兼容版

polarion_download_attachment

Download a Polarion Work Item attachment to a local directory and return the saved file path using the work item ID and attachment file name.

Instructions

Download a Work Item attachment to the local filesystem and return its path.

Args: work_item_id: Work Item id. file_name: Attachment file name as listed by polarion_list_attachments. project_id: Project id. Inferred from the id when omitted. save_dir: Directory to write into. Defaults to ./polarion_attachments.

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": {
      "work_item_id": "<work_item_id>",
      "file_name": "<file_name>"
    },
    "name": "polarion_download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_dirNo
file_nameYes
project_idNo
work_item_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the key side effect (writes a file to disk) and the default destination directory (./polarion_attachments), which is valuable. However it says nothing about overwrite behavior for an existing filename, whether the directory is created automatically, permission/auth requirements, or what happens if the attachment is missing.

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?

One front-loaded sentence stating action and return value, followed by a tight Args block with zero filler. Every line adds information an agent needs.

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 2-required-param download tool with an output schema covering the returned path, the definition is nearly sufficient. The missing piece is failure and overwrite behavior for local file writes, which matters for a destructive-ish filesystem operation with no annotations to fall back on.

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 description coverage is 0%, so the Args block is doing all the work, and it does it well: it defines project_id inference from the id when omitted, gives the save_dir default, and anchors file_name to polarion_list_attachments output. It never specifies the expected format of work_item_id (e.g., a PROJ-123 style key vs. internal id), which is the remaining gap.

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?

States a specific verb+resource (download a Work Item attachment) plus the outcome (writes to local filesystem, returns its path). This clearly separates it from polarion_list_attachments and polarion_upload_attachment without needing either schema.

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?

Provides clear context: it tells the agent that file_name comes from polarion_list_attachments, which effectively routes the agent to the enumeration tool first. It stops short of an explicit when-not-to-use statement or any error/fallback guidance, so it is not a full 5.

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