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

Polarion MCP Server — 2023 兼容版

polarion_search_work_items

Search Polarion project work items with Lucene queries, then filter, sort, and limit results to find relevant requirements, tasks, or defects.

Instructions

Search Work Items in a project with a Polarion Lucene query.

Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. query: Lucene query, e.g. 'type:requirement AND status:open'. Empty returns all. limit: Maximum work items to return (default 25, max 500). page_size: REST page size (Polarion 2023 caps this at 100 by default). sort: Sort expression, e.g. 'updated' or '-created'. Prefix '-' for descending. fields: Optional sparse-field expression, e.g. '@basic' or 'title,status'. description_limit: Truncate each description to this many characters. include_custom_fields: Include configured custom fields found on the items.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "polarion_search_work_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
limitNo
queryNo
fieldsNo
page_sizeNo
project_idNo
description_limitNo
include_custom_fieldsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful traits such as the 500-item cap, the 100-item Polarion page-size cap, description truncation, and custom-field inclusion. However, it does not state the read-only/safety profile or explain how limit interacts with page_size across paging, leaving a meaningful 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?

A single front-loaded purpose sentence followed by a compact, scannable per-argument list. Each line earns its place, though the defaults restated from the schema are mildly redundant.

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?

For an 8-parameter tool with no annotations, the description covers purpose, every argument, caps, and truncation behavior; the output schema handles return values. The remaining gap is that it does not explain pagination semantics or route the agent to get_work_item for full detail.

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 description coverage is 0%, so the description must compensate, and it documents all 8 parameters with defaults, ranges, and concrete examples such as 'type:requirement AND status:open' and '-created' for descending sort. It stops short of explaining the interaction between limit and page_size.

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?

States a specific verb and resource ("Search Work Items in a project") plus the query language used (Polarion Lucene). It clearly differs from the single-item siblings, though it never names polarion_get_work_item or polarion_get_work_items as the alternatives.

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 usage is implied by the tool name and by the note that an empty query returns all, but there is no explicit when-to-use versus the sibling getters, no guidance on when to prefer a direct get by ID, and no stated prerequisites.

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