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

Polarion MCP Server — 2023 兼容版

polarion_get_document

Read a single Polarion LiveDoc by document ID, optionally providing project and space to avoid lookup, and include sections/work items or limit HTML content when needed.

Instructions

Read one LiveDoc document. When space_id is omitted, the document is located by walking the project's spaces.

Args: document_id: Document name or id, e.g. 'System Requirements'. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. space_id: Space id. Provide it to avoid the lookup walk. include_parts: Also return the document's parts (sections and embedded Work Items). content_limit: Truncate HTML content to this many characters.

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": {
      "document_id": "<document_id>"
    },
    "name": "polarion_get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
space_idNo
project_idNo
document_idYes
content_limitNo
include_partsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it discloses two non-obvious behaviors the schema cannot express: an implicit space-walk lookup when space_id is omitted (with a performance cost), and HTML content truncation via content_limit. It does not cover error behavior for missing documents or any permission requirements, which keeps it below a 5.

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 core action and the lookup caveat are front-loaded in the opening sentence, then a compact Args block covers each parameter in one line with no filler. The structure is efficient, though the docstring style is slightly more verbose than a single tight paragraph would be.

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?

An output schema exists, so return-value documentation is unnecessary, and every input parameter is explained, which is strong for a five-parameter tool. The remaining gap is failure/edge behavior - what happens when the document is not found or when truncation occurs - which a read tool with no annotations could reasonably state.

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

Parameters5/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 does for all five parameters: document_id with a concrete example format, project_id with its default, space_id with the reason to supply it, include_parts with what it adds, and content_limit with its truncation semantics. This is meaning well beyond the bare schema titles.

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?

States a specific verb and resource ('Read one LiveDoc document') and immediately qualifies the scope: single-document retrieval, with parts available via a flag. The mention of 'Also return the document's parts' implicitly distinguishes it from the sibling polarion_get_document_parts, so an agent can tell what this tool does and does not cover.

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?

Gives conditional guidance on parameters ('Provide it to avoid the lookup walk', 'Also return the document's parts'), which helps an agent choose argument values. However, it never states when to use this tool versus siblings such as polarion_get_document_parts or polarion_list_documents to find a document, so tool-selection guidance is only implied.

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