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

Polarion MCP Server — 2023 兼容版

polarion_add_test_record

Record a test result for a Test Case in a Test Run, including status, comment, timestamp, and duration, with optional dry-run validation before writing.

Instructions

Record a test result for a Test Case in a Test Run. Requires write access.

Args: test_run_id: Test Run id. test_case_id: Test Case Work Item id. result: Result id, typically 'passed', 'failed', 'blocked' or 'notApplicable'. Valid values are project-configurable; check the project's enumeration. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. comment: Optional execution comment. executed: ISO-8601 timestamp; defaults to server time when omitted. duration: Optional duration, e.g. 'PT5M30S' (ISO-8601) or '330'. dry_run: Build the 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": {
      "test_run_id": "<test_run_id>",
      "test_case_id": "<test_case_id>",
      "result": "<result>"
    },
    "name": "polarion_add_test_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
resultYes
commentNo
dry_runNo
durationNo
executedNo
project_idNo
test_run_idYes
test_case_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 disclose the key traits: it is a write operation requiring write access, result values are project-configurable rather than fixed, and dry_run builds the request without sending it. It does not say whether re-recording overwrites an existing result or appends a new one, which is the main remaining behavioral gap.

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?

Purpose is front-loaded in one sentence, followed by a tightly scoped Args block where each line earns its place through format examples and defaults. Slightly list-heavy, but there is no filler or repetition.

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?

Given 8 parameters, no annotations, and an output schema that already covers return values, the description is largely sufficient for correct invocation. What it omits is the duplicate-record behavior and any error conditions, which leaves a mutation tool slightly under-specified.

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 fully does: every one of the 8 parameters gets meaning, an example format (ISO-8601 duration 'PT5M30S' or '330'), or a default (server time for executed, POLARION_DEFAULT_PROJECT for project_id). This is meaning well beyond what the bare schema provides.

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 opening sentence names a specific verb and resource with full scope: 'Record a test result for a Test Case in a Test Run.' An agent can immediately distinguish this from read-side siblings such as polarion_get_test_records or polarion_create_test_run.

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 gives clear context (a Test Run must exist and write access is required) and a practical caveat to check the project's enumeration before picking a result. It stops short of explicit when-not or alternative routing, so it is strong but not a 5.

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