Skip to main content
Glama
YouTrack MCP

YouTrack MCP

by tonyzorin

get_custom_field_allowed_values

Retrieve allowed values for enum or state custom fields in a YouTrack project to validate or select valid field options.

Instructions

Get allowed values for enum/state custom fields in a project.

FORMAT: get_custom_field_allowed_values(project_id="DEMO", field_name="Priority")

Args: project_id: The project identifier (e.g., "DEMO", "0-0") field_name: The custom field name

Returns: JSON string with allowed values and their details

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": {
      "project_id": "<project_id>",
      "field_name": "<field_name>"
    },
    "name": "get_custom_field_allowed_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
field_nameYes
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

B3.1/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 establish that this is a read that returns a JSON string of allowed values and details. It is silent on error behavior for non-enum fields, permission requirements, or whether values are project-scoped versus global, which matter for a configuration lookup.

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

Conciseness3/5

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

The purpose sentence is front-loaded and the FORMAT/Args/Returns layout is scannable, but the Args block largely restates the input schema rather than adding new information. The Returns section is redundant given an output schema exists.

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?

For a simple two-parameter read tool with an output schema, the definition covers the essentials without over-explaining return values. What is missing is disambiguation from similar siblings and any note on behavior when the field is not an enum/state type.

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 0%, so the description must compensate, and it does so partially by giving concrete identifier formats for project_id ('DEMO', '0-0') and clarifying that field_name is a custom field name. It stops short of explaining whether field_name must match exactly, be case-sensitive, or how it relates to field IDs.

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: retrieves allowed values for enum/state custom fields within a project, which is concrete and interpretable. It does not, however, distinguish itself from the similarly named sibling get_available_custom_field_values, leaving the boundary between the two ambiguous.

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

Usage Guidelines2/5

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

The phrase 'for enum/state custom fields' implies the applicable field type, which is the only usage constraint present. There is no explicit when-to-use guidance, no statement about when not to use it, and no mention of the near-identical sibling alternative.

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