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

Polarion MCP Server — 2023 兼容版

polarion_link_work_items

Create a directed traceability link between two Polarion Work Items by specifying source, target, and link role, with optional suspect flag and dry-run preview.

Instructions

Create a directed traceability link from one Work Item to another.

Args: source_work_item_id: The Work Item that owns the outgoing link. target_work_item_id: The Work Item being linked to. role: Link role id, e.g. 'verifies', 'implements', 'relates_to'. Role ids are project-configurable; an invalid role returns HTTP 422 with the allowed values. project_id: Project id. Inferred from the source id when omitted. suspect: Mark the link as suspect. dry_run: Build the request without sending it.

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": {
      "source_work_item_id": "<source_work_item_id>",
      "target_work_item_id": "<target_work_item_id>",
      "role": "<role>"
    },
    "name": "polarion_link_work_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes
dry_runNo
suspectNo
project_idNo
source_work_item_idYes
target_work_item_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 full behavioral burden and does add real signal: role ids are project-configurable, invalid roles return HTTP 422 with the allowed values, project_id is inferred when omitted, and dry_run builds the request without sending it. It stops short of stating permission requirements, duplicate-link behavior, or whether the operation is idempotent for a mutating call.

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 sentence is front-loaded, followed by a compact per-argument list where each entry is one line and earns its place. The docstring-style Args block is slightly verbose in formatting but contains no filler.

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?

An output schema exists, so return values need not be explained, and the parameter-level detail is thorough for a 6-parameter mutation. The remaining gap is operational context an agent would want before a write: required permissions, whether re-linking the same pair is an error, and cross-project constraints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet every one of the six parameters is explained beyond its name: source owns the outgoing link, target is linked to, role gives concrete example ids ('verifies', 'implements', 'relates_to') and its validation behavior, project_id documents inference, and both boolean flags are defined. This fully compensates for the bare schema.

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 opens with a specific verb and resource: 'Create a directed traceability link from one Work Item to another', and the source/target framing makes the directionality explicit. It does not explicitly name the sibling alternatives (polarion_unlink_work_items, polarion_get_linked_work_items), though the create/get/unlink verbs distinguish them naturally.

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 context is implied rather than stated: the agent learns project_id is inferred from the source id when omitted, and that an invalid role yields HTTP 422 with allowed values. There is no explicit when-to-use vs. when-not-to-use guidance relative to unlinking or reading links, and no prerequisites (permissions, whether the two items must be in the same project) are given.

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