Skip to main content
Glama

list_document_enum_options

Read-only

Retrieve valid enum option IDs for a document field by project, field, and document type to use in create or update operations.

Instructions

List valid enum option ids for a document field of a given type.

Resolve enum ids here before create_document / update_document — enums are validated on write, invalid ids raise with this set. An unknown document_type silently falls back to ~, so verify the type id first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
field_idYese.g. 'status', 'type', or a custom field id.
page_sizeNo
project_idYesPolarion project ID.
page_numberNo
document_typeYese.g. 'systemReqSpecification'; '~' = type-agnostic.

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 reveals that unknown document_type falls back silently and that invalid enum IDs cause errors on write. However, it does not discuss pagination behavior or output format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with front-loaded purpose. Every sentence adds value: purpose, usage guideline, and a caution about fallback behavior.

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?

With an output schema present, the description does not need to detail return values. It covers purpose, usage, and a key behavioral nuance. Could mention pagination or that it returns a list, but output schema likely covers that.

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?

Schema coverage is 60% (3/5 params have descriptions). The description adds no per-parameter semantics beyond the schema, but it repeats the document_type hint. Baseline 3 is appropriate.

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 explicitly states 'List valid enum option ids for a document field of a given type,' which is a specific verb+resource. It distinguishes itself from the sibling 'list_work_item_enum_options' by targeting document fields.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Directs to use this tool before create_document/update_document to resolve enum ids, and warns that invalid ids raise errors on write. Also advises verifying the document_type to avoid silent fallback to '~'.

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