Skip to main content
Glama

get_project_fields

Read-onlyIdempotent

List a YouTrack project's custom fields with required status and valid values, and filter them by planned issue values before calling create_issue to set exactly the right fields.

Instructions

List custom fields for a project with required status and available values.

Use this before create_issue to discover required fields and valid values. A conditional field (shown only for some values of another field) is labelled with its condition, e.g. (required when Type = Bug): it cannot be set on an issue that does not meet it.

Args: project: Project short name instance: YouTrack instance (optional) when: Values the new issue will have, e.g. "Type=Tech task" or "Type=Bug; Product=Alpha". Fields whose condition these values do not meet are left out, so the list is exactly what to set.

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": "<project>"
    },
    "name": "get_project_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
whenNo
projectYes
instanceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.40.2
    • addedInput schema / properties / when
      Added value: +{
      +  "default": "",
      +  "title": "When",
      +  "type": "string"
      +}
  2. First observedv1.21.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: conditional fields are labelled with their condition and cannot be set unless the condition is met, and the `when` parameter prunes the returned list. What remains unstated is the response shape and whether values are truncated.

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 core purpose and the create_issue routing are front-loaded, then the conditional-field rule, then per-argument detail. The Args block is justified given zero schema descriptions; a small amount of overlap between the `when` prose and its example could be trimmed.

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 a three-parameter read tool with an output schema (so return values need not be explained), the description covers purpose, sequencing, conditional-field semantics, and each parameter. Only minor gaps remain, such as default instance resolution and whether `when` requires an exact string format.

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 coverage is 0%, so the description carries the full burden and largely meets it: project is a short name, instance is optional, and `when` is explained with concrete syntax examples ('Type=Tech task', 'Type=Bug; Product=Alpha') plus the filtering effect. The `instance` explanation is thin and does not say what the default is when omitted.

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?

States a specific verb and resource ('List custom fields for a project') plus the payload ('required status and available values'), which immediately separates it from issue-reading siblings like get_issue or get_issues. An agent knows this is a schema-discovery tool, not a data-fetching tool.

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?

Explicitly routes the agent: 'Use this before create_issue to discover required fields and valid values,' naming the sibling and the ordering. It lacks an explicit when-not-to-use clause (e.g. reading values on an existing issue), but the intended workflow is unambiguous.

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

Deploy Server

Other Tools