Skip to main content
Glama
YouTrack MCP

YouTrack MCP

by tonyzorin

validate_custom_field_for_project

Validates a custom field value against a project's schema and returns validation results with suggestions, helping ensure issue field values match project requirements.

Instructions

Validate a custom field value against the project's schema.

FORMAT: validate_custom_field_for_project(project_id="DEMO", field_name="Priority", field_value="High")

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

Returns: JSON string with validation result and suggestions

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>",
      "field_value": "<field_value>"
    },
    "name": "validate_custom_field_for_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
field_nameYes
project_idYes
field_valueYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load. It does disclose that the call returns a JSON string with a validation result plus suggestions, which implies a non-throwing, advisory read. It omits whether invalid values raise an error, whether the call has side effects, and any auth or rate-limit expectations.

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?

Front-loaded one-line purpose followed by a FORMAT example, an Args list, and a Returns note — a predictable, scannable structure with no filler. Minor redundancy in restating the three parameters, but each line is short and useful.

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?

An output schema exists, so the Returns note is a bonus rather than a necessity. What is missing for a 3-parameter, 0%-coverage tool with no annotations is the failure behavior (does an invalid value return a result or an error?) and disambiguation from the similarly named sibling validator.

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 description coverage is 0%, so the description must compensate, and it does document all three parameters with a worked example ('DEMO', 'Priority', 'High'). However, field_value has no declared type in the schema and the description only calls it 'the value to validate' — it does not say whether objects, arrays, or null are accepted, or what format field_name follows.

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: 'Validate a custom field value against the project's schema.' An agent can immediately tell this is a read-only check operation rather than a write. It does not, however, differentiate itself from the sibling 'validate_custom_field', whose name suggests an overlapping non-project-scoped capability.

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?

Usage is only implied — the FORMAT example shows a concrete call, hinting this is a pre-flight check before setting a field value. There is no explicit statement of when to use this versus 'validate_custom_field' or 'get_custom_field_allowed_values', and no note on whether it is safe to call speculatively.

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