Skip to main content
Glama

create_document_comments

Add one or more comments to a Polarion document in a single request. Supports replies, HTML, and dry-run preview.

Instructions

Create one or more comments on a Polarion document in a single request.

All post together (201 with new IDs). Reply by setting parent_comment_id to a short ID from list_document_comments (None = top-level). text_format 'text/html' sent as-is (no sanitization); omit author_id to use the token's user. NOT idempotent — retry duplicates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesPolarion project ID.
space_idYesSpace ID (use '_default' for the default space).
document_nameYesDocument name within ``space_id``.
commentsYesOne or more comments to create in a single request.
dry_runNoWhen True, return payload preview without calling Polarion.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
createdYes
dry_runYes
comment_idsYes
payload_previewYes
Behavior4/5

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

The description adds value beyond annotations by stating the tool is not idempotent (retry duplicates), explains HTTP status 201, and notes that text/html is sent without sanitization. Annotations already indicate mutability and non-idempotence, but the description enriches these with concrete behavioral details.

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

Conciseness5/5

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

The description is five sentences, front-loaded with the main purpose. Each sentence provides necessary operational detail without fluff, making it efficient and easy to parse.

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 the presence of an output schema, the description covers all essential aspects: creation semantics, parameter usage, and behavioral traits like non-idempotency and text handling. It is complete for an AI agent to invoke 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%, but the description adds context for key parameters: parent_comment_id for replying (linked to list_document_comments), text_format behavior (no sanitization), and author_id defaulting to token's user. This goes beyond the schema's descriptions.

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 explicitly states the tool creates one or more comments on a Polarion document in a single request. It uses a specific verb ('Create') and resource ('document comments'), clearly distinguishing it from sibling tools like update_document_comment or list_document_comments.

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?

The description provides clear guidance on when to use the tool, including details on replying (parent_comment_id), text formats, author_id defaults, and the non-idempotent behavior. It does not explicitly mention alternative tools for similar tasks but the context is sufficient for correct selection.

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