create_work_item_comments
Add one or more comments to a Polarion work item in a single request, with optional parent comment, title, and text format.
Instructions
Create one or more comments on a work item in one request.
Reply: set parent_comment_id to a short id from list_work_item_comments (None = top-level). Optional title sets the comment heading. 'text/html' text is sent unsanitized. Always authored by the token's user. NOT idempotent — a retry duplicates. workitemimg:{id} image refs in text/html comments must name an existing attachment — resolve via list_work_item_attachments first.
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": {
"project_id": "<project_id>",
"work_item_id": "<work_item_id>",
"comments": "<comments>"
},
"name": "create_work_item_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| comments | Yes | Comments to create in one request. | |
| project_id | Yes | Polarion project ID. | |
| work_item_id | Yes | Work item ID, e.g. 'MCPT-001'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| dry_run | Yes | ||
| comment_ids | Yes | ||
| payload_preview | Yes |