Skip to main content
Glama
phillipboesger

Polarion MCP Server

patchDocumentComment

Idempotent

Update an existing document comment in Polarion, with support for idempotent requests and a dry-run preview to validate changes before applying them.

Instructions

Updates the specified Document Comment. Effect: idempotent — calling it again with the same input leaves the resource in the same end state, with no additional side effects. Tip: set dry_run: true first to preview the exact request Polarion would receive, without changing anything. On tools with a typed output schema, this preview is returned as an error-flagged result since it is not real tool output -- read the text content regardless of that flag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it.
spaceIdYesThe Document Space ID (a folder-like grouping of documents/pages within a project). Use `_default` (no quotes) to address the project's default space.
commentIdYesThe Comment ID.
projectIdYesThe Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs.
requestBodyYesThe Comment body.
documentNameYesThe Document name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • changedInput schema / properties / dry_run / description
      Previous value: -"If true, validate and return the request that would be sent without calling Polarion."New value: +"If true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it."
    • changedInput schema / properties / projectId / description
      Previous value: -"The Project ID."New value: +"The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs."
    • changedInput schema / properties / spaceId / description
      Previous value: -"The Space ID. (Use '_default' without quotes to address the default Space.)"New value: +"The Document Space ID (a folder-like grouping of documents/pages within a project). Use `_default` (no quotes) to address the project's default space."
  2. Changed1 schema field changed
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true, validate and return the request that would be sent without calling Polarion.",
      +  "type": "boolean"
      +}
  3. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

The description elaborates the idempotentHint annotation with a concrete explanation of idempotency ('leaves the resource in the same end state, with no additional side effects'), which adds meaning beyond the annotation flag. It also discloses a non-obvious behavioral quirk: the dry_run preview is 'returned as an error-flagged result' and agents should 'read the text content regardless of that flag.' This is genuinely useful context not captured in annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences with the core purpose front-loaded and no redundant phrasing. However, the third sentence contains a conditional caveat ('On tools with a typed output schema') that does not apply to this tool, which has no output schema, making part of the guidance tangentially irrelevant for this specific tool.

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

Completeness3/5

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

For a mutation tool with 6 parameters including a nested requestBody and no output schema, the description is adequate but sparse: it covers idempotency and the dry_run workflow, and the schema carries full parameter documentation. It does not describe success responses, error behavior, or what the update actually changes on the resource (e.g., resolved field), which an agent might need when predicting outcomes.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description's dry_run tip complements the dry_run parameter documentation by explaining the preview workflow, but it does not add meaning for projectId, spaceId, commentId, documentName, or requestBody beyond what the schema already provides.

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 states a specific verb and resource: 'Updates the specified Document Comment.' This clearly identifies the operation and its target. However, it does not explicitly name sibling alternatives like patchPageComment or patchComment, so differentiation relies on the resource qualifier rather than the description itself.

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?

The dry_run tip provides actionable usage guidance: 'set dry_run: true first to preview the exact request Polarion would receive, without changing anything.' This implies a safe validation-first workflow but does not state when to use this tool versus alternatives, nor does it give explicit exclusions or prerequisites beyond what the schema already documents.

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

Deploy Server

Other Tools