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

Polarion MCP Server — 2023 兼容版

polarion_get_document_parts

Read a LiveDoc's parts—headings, sections, text, and linked Work Item IDs—to inspect document structure. Optionally fetch Work Item titles and descriptions or truncate HTML content.

Instructions

Read the parts of a LiveDoc: headings and sections with their text and linked Work Item ids.

Args: document_id: Document name or id. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. space_id: Space id. Required on releases without a project-wide document lookup. part_id: Return only this part instead of the full list. content_limit: Truncate each part's HTML content. include_work_item_content: For Work Item parts, also fetch the Work Item title and description (adds one REST call per distinct Work Item, capped at 50).

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_parts"
  }
}

Input Schema

NameRequiredDescriptionDefault
part_idNo
space_idNo
project_idNo
document_idYes
content_limitNo
include_work_item_contentNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/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 does a good job on cost and availability: it discloses that include_work_item_content adds one REST call per distinct Work Item capped at 50, that content_limit truncates HTML, and that space_id is required only on releases lacking project-wide document lookup. It stops short of stating failure behavior when part_id is invalid or how large an unbounded full-list read can be.

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 summary line is front-loaded and the Args block is compact, with each entry adding real information rather than restating the field type. Minor waste only in that the Args list duplicates parameter names already visible in the schema.

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?

An output schema exists, so return values need not be described, and the description covers all parameters, the truncation default, and the fan-out cost cap. For a six-parameter read tool this is essentially complete; the only omission is how to discover document_id/space_id, which sibling listing tools handle.

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: all six parameters are documented with meaning the schema lacks — the POLARION_DEFAULT_PROJECT fallback for project_id, the release-conditional requirement for space_id, truncation semantics for content_limit, and the per-Work-Item call cost for include_work_item_content. This is the definition's strongest dimension.

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 first sentence states a specific verb and resource — 'Read the parts of a LiveDoc' — and immediately enumerates what a 'part' is (headings, sections, text, linked Work Item ids). That distinguishes it implicitly from polarion_get_document, but no sibling is named, so the differentiation relies on the reader inferring what get_document covers.

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?

There is one useful within-tool routing hint: 'part_id: Return only this part instead of the full list.' Beyond that, there is no guidance on when to call this versus polarion_get_document or polarion_get_work_items, and no stated prerequisites for obtaining document_id or space_id.

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