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

Polarion MCP Server — 2023 兼容版

polarion_create_work_item

Create Polarion work items such as requirements, tasks, or defects by specifying a title, type, and project; optionally set status, assignees, custom fields, or preview the request with dry_run.

Instructions

Create a Work Item. Requires write access.

Args: title: Work Item title. work_item_type: Type id, e.g. 'requirement', 'task', 'defect'. Use polarion_list_work_item_types to discover valid ids. project_id: Target project. Defaults to POLARION_DEFAULT_PROJECT. description: Description text or HTML. status: Initial status id, e.g. 'open'. Must be allowed by the workflow. custom_fields: Map of custom field id to value. assignees: Optional user ids to assign after creation. dry_run: Build and return the JSON:API 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": {
      "title": "<title>",
      "work_item_type": "<work_item_type>"
    },
    "name": "polarion_create_work_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
statusNo
dry_runNo
assigneesNo
project_idNo
descriptionNo
custom_fieldsNo
work_item_typeYes

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, the description carries the full burden and mostly meets it: it discloses the write-access requirement, the workflow constraint on status, that assignees are applied after creation, and that dry_run builds the JSON:API payload without sending it. Remaining gaps are edge behavior such as duplicate titles or per-field validation errors.

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, followed by a scannable per-argument list with no filler. The title/description entries add little, but nothing is padded.

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 an 8-parameter mutation tool with zero schema descriptions and no annotations, the definition covers prerequisites, defaults, discovery paths, and the dry-run escape hatch. Return values need not be explained because an output schema exists.

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 description must compensate, and it documents all 8 parameters with meaning beyond the bare schema titles: type ids and how to discover them, the POLARION_DEFAULT_PROJECT fallback, HTML-or-text for description, and custom_fields as an id-to-value map. Only the title and description entries are near-tautological restatements.

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?

"Create a Work Item" gives a specific verb and resource, which cleanly separates it from the update/delete/get siblings in the catalog. It does not explicitly name those siblings as alternatives, but the create semantics are unambiguous.

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?

It states a prerequisite (write access) and routes the agent to polarion_list_work_item_types to discover valid type ids, plus warns that status must be permitted by the workflow. It does not explicitly say when to use polarion_update_work_item instead, but the create-vs-update distinction is self-evident.

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