Skip to main content
Glama

create_work_item

Create a new work item in a Polarion project. Specify title, type, description, status, priority, assignees, due date, hyperlinks, and custom fields.

Instructions

Create a new Polarion work item in a project.

The work item is created free-floating — to place it inside a document at a specific outline position, follow up with move_work_item_to_document. Direct creation into a document via the module relationship is intentionally NOT exposed: per the Polarion API, such work items land in the document's recycle bin until a separate Document Part is created, leaving them invisible in the document body. Always pair create + move for a single, visible result.

Format asymmetry: description here is Markdown (converted to sanitized HTML on write) because greenfield authoring is natural for LLMs. After creation the round-trip pair is get_work_item(include_description_html=True)update_work_item(description_html=...) which speaks raw HTML verbatim. The two formats never mix.

Polarion does NOT validate enum membership server-side. Unknown type / status / severity ids are stored verbatim as ghost values that look real on later reads but never match Lucene queries. priority is the only partial exception: a non-numeric string coerces to the project default, but a numeric string outside the enum set (e.g. "999.0") also persists verbatim. Resolve valid ids first via list_work_item_enum_options(project_id, field_id, work_item_type). custom_fields is the same story: unknown field IDs — including brand-new IDs that no work item of this type has ever used — silently persist as ghost attributes. Pass keys taken from a prior get_work_item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesPolarion project ID.
titleYesWork item title (required, non-empty).
typeYesWork item type (e.g. 'requirement', 'task', 'testCase').
descriptionNoOptional Markdown body; converted to sanitized HTML on write.
statusNoOptional initial workflow status (project default applies if omitted).
priorityNoOptional priority string (e.g. '50.0').
severityNoOptional severity classification (e.g. 'major', 'critical').
assignee_idsNoOptional short user IDs to assign (e.g. ['alice', 'bob']).
due_dateNoOptional due date 'YYYY-MM-DD'.
initial_estimateNoOptional Polarion duration (e.g. '5 1/2d', '1w 2d', '4h').
hyperlinksNoOptional external hyperlinks; each must have ``role`` and ``uri``.
custom_fieldsNoOptional custom fields keyed by Polarion field ID; rich-text values must be ``{'type':'text/html','value':...}``.
dry_runNoWhen True, return payload preview without calling Polarion.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
createdYesTrue on a real create; False on dry-run.
dry_runYesWhether this was a dry-run.
work_item_idYesID of the new work item (e.g. 'MCPT-042'); None on dry-run.
payload_previewYesJSON:API payload sent or previewed; None after real ops.
Behavior5/5

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

Adds significant behavioral context beyond annotations: format asymmetry between description formats (Markdown vs HTML), non-validation of enums leading to ghost values, and persistence behavior of custom_fields. Annotations indicate openWorldHint=true and non-idempotent, which align with description. No contradiction.

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?

Description is thorough and well-structured: starts with core purpose, then explains lifecycle, format asymmetry, validation issues, and custom fields. Each paragraph serves a purpose. Slightly verbose but every sentence adds value. Could be tightened without losing information.

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?

Given 13 parameters, 3 required, and output schema exists, the description covers all critical aspects: creation workflow, important caveats, validation pitfalls, and parameter-specific behaviors. It provides a complete picture for an LLM to use the tool correctly.

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 coverage is 100% so baseline is 3. Description adds extra meaning for key parameters: explains the Markdown-to-HTML conversion for 'description', warns about ghost values for 'type'/'status'/'severity'/'custom_fields', and clarifies 'assignee_ids' and 'hyperlinks' constraints. Not all parameters get extra detail, but the critical ones do.

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?

Clearly states 'Create a new Polarion work item in a project' with a specific verb and resource. Distinguishes from siblings by noting the free-floating nature and need to pair with move_work_item_to_document, and explicitly explains why direct document creation is not exposed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use: for creating a free-floating work item, then follow with move_work_item_to_document. Warns against setting the module relationship and explains the recycle bin issue. Also includes guidance on pre-resolving enum values via list_work_item_enum_options.

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