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

Polarion MCP Server — 2023 兼容版

polarion_upload_attachment

Uploads a local file as an attachment to a Polarion Work Item, with optional dry-run validation and a 50 MB size limit.

Instructions

Upload a local file as an attachment to a Work Item. Requires write access.

Args: work_item_id: Work Item id. file_path: Absolute or relative path to an existing file (max 50 MB). project_id: Project id. Inferred from the id when omitted. dry_run: Validate the file and return the request without uploading.

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_path": "<file_path>"
    },
    "name": "polarion_upload_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
file_pathYes
project_idNo
work_item_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does add real behavioral context: a write-permission requirement, a hard 50 MB file-size cap, and the fact that dry_run returns the request without uploading. It omits what happens on duplicate filenames (overwrite vs. reject) and any error behavior for oversized files.

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 purpose and access requirement are front-loaded in one sentence, with parameters in a scannable Args list rather than prose. The Args block partly duplicates the schema, but that is justified given the 0% schema coverage.

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 mutating upload tool with no annotations, the definition covers permissions, size limits, and a dry-run escape hatch, and an output schema exists so return values need not be described. The main remaining gap is collision/overwrite behavior, which an agent would want before uploading.

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 the only source of parameter meaning, and it compensates well: file_path carries existence and size constraints, project_id explains the inference fallback when omitted, and dry_run explains its validation semantics. work_item_id is left as a bare restatement, keeping it short of a 5.

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 first sentence names a specific verb and resource ('Upload a local file as an attachment to a Work Item'), which is distinct from the sibling list/download attachment tools. It does not explicitly name an alternative, but the operation is unambiguous.

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?

It states the prerequisite ('Requires write access') and explains dry_run as a validation-only mode, which implies a safe pre-flight pattern. However, there is no explicit guidance on when to prefer this over siblings such as polarion_list_attachments or polarion_download_attachment, nor on how to confirm a Work Item exists first.

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