Skip to main content
Glama

list_work_items

Read-only

Search and list work items in a Polarion project. Use Lucene queries or native SQL to filter by type, title, or custom fields.

Instructions

List / search work items in a project.

Lucene query (type:requirement, title:SRS*; leading wildcards 400) or omit for all. module and body text are NOT Lucene-indexed — scope by document via SQL:(...) or read_document_parts, never a Lucene module term.

SQL:(...) runs native SQL: call get_sql_query_recipes first and adapt a recipe (document scope, custom-field, traceability), do not hand-write. Escape ' as ''; keep LIKE top-level via INNER JOIN (rejected inside EXISTS; C_DESCRIPTION LIKE never matches).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoOptional Lucene filter (e.g. 'type:requirement', 'title:SRS*') OR a 'SQL:(...)' prefix for native SQL.
page_sizeNo
project_idYesPolarion project ID.
page_numberNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
itemsYes
has_moreNo
page_sizeYes
total_countYes
Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses important behavioral traits: module/body fields are not Lucene-indexed, and SQL queries must be adapted from a recipe. This adds significant context for correct usage.

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 description is front-loaded with the core purpose and then provides necessary details in a logical order. A few sentences could be tightened, but every part adds value without redundancy.

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?

Given the tool's complexity and the presence of an output schema, the description covers search modes, limitations, and dependencies (get_sql_query_recipes). It could briefly mention pagination behavior, but overall it is complete.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The parameter 'query' is well explained with examples and constraints, compensating for the schema's limited description. However, pagination parameters (page_size, page_number) receive no explanatory text, and overall schema description coverage is 50%.

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 clearly states the tool's action ('List / search work items in a project.') and distinguishes it from siblings that handle single items (get_work_item, read_work_item) or different resources (documents). The specific verb-resource combination is unambiguous.

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 description provides detailed guidance on how to construct queries using Lucene or SQL, including explicit warnings about unsupported searches and a prerequisite to call get_sql_query_recipes first. However, it does not directly compare to sibling tools or specify when to use this tool over alternatives like read_work_item.

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