Skip to main content
Glama

create_work_item_links

Create outgoing links from a source work item to target work items in Polarion. Supports batch creation of 1-50 links with role, revision, and suspect settings, ensuring atomic validation and rollback on errors.

Instructions

Create 1-50 outgoing links from one source work item, atomically.

Role and target existence validated before POST — invalid ones raise ValueError. Per spec: target_project_id defaults to source, revision pins (else HEAD), suspect flags re-review. A 4xx (e.g. duplicate role+target → 409) rolls back the whole batch — re-query list_work_item_links before retrying. link_ids are the delete-path ids, input order.

Phantom success: when the source sits in a document, move_work_item_to_document already auto-created one heading link; a NEW same-role link 201s but is NOT persisted — verify with list_work_item_links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksYesLinks to create under the source work item (1-50).
dry_runNoPreview payload without writing; guards still query Polarion.
project_idYesSource work item's project ID.
work_item_idYesSource work item ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
createdYes
dry_runYes
link_idsNo
payload_previewNo
Behavior5/5

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

Discloses key behaviors beyond annotations: atomicity, validation and error raising before POST, rollback on 4xx, phantom success scenario, explanation of link_ids. No contradiction with annotations (readOnlyHint=false, destructiveHint=false).

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?

Slightly verbose but each sentence adds unique value; front-loaded with core purpose. Would benefit from slight tightening but is justified given the complexity of the operation.

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

Completeness5/5

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

Covers all essential aspects: creation, validation, atomicity, error handling, edge cases (phantom success), and output interpretation (link_ids). With output schema present, description need not detail return values but still mentions key output field.

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?

Adds significant meaning beyond the 100% schema coverage: defaults (target_project_id to source), revision pinning behavior, suspect flag semantics, meaning of link_ids in output. Provides practical context for each parameter.

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?

The description clearly states the verb 'create', the resource 'links', and specifies the scope 'from one source work item, atomically' and batch size '1-50'. This distinguishes it from siblings like update_work_item_link and delete_work_item_links.

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 guidance on when to use (creating links), error handling (rollback on 4xx, re-query before retry), and special case verification (phantom success with document-linked items). While not explicitly excluding alternatives, the context differentiates by action type.

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/devemberx/mcp-server-polarion'

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