Skip to main content
Glama
YouTrack MCP

YouTrack MCP

by tonyzorin

advanced_search

Search YouTrack issues with query-language filters, sorting, limits, and paging to find and manage the specific issues you need.

Instructions

Advanced search for issues using YouTrack query language with sorting.

FORMAT: advanced_search(query="project: DEMO #Unresolved", limit=5, sort_by="created", sort_order="desc")

Args: query: YouTrack query string limit: Maximum number of results to return sort_by: Field to sort by (created, updated, priority, etc.) sort_order: Sort order ('asc' or 'desc') skip: Number of results to skip (offset for paging)

Returns: JSON string with search results

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": {
      "query": "<query>"
    },
    "name": "advanced_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNo
limitNo
queryYes
sort_byNo
sort_orderNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.6/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: it discloses that results come back as a JSON string and that skip/limit provide paging, which is useful. It does not state that the operation is read-only, whether there are result caps or rate limits, or what happens on an invalid query string, leaving meaningful behavioral gaps for a search tool.

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 purpose, then a concrete FORMAT example, then per-argument notes and a return line. The structure is easy to scan and every section earns its place, though the 'Returns: JSON string with search results' line is largely redundant given an output schema exists.

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 five-parameter search tool with an output schema, the definition covers purpose, a syntax example, every argument, and paging. The remaining gaps are defaults/limits and the absence of any contrast with sibling search tools, which matter for correct tool selection but not for correct invocation.

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 description coverage is 0%, so the description must compensate, and it largely does: all five parameters are documented with meaning, sort_by lists concrete field values, sort_order constrains to asc/desc, and skip is explained as a paging offset. It omits the default values (limit=10, skip=0) and any constraints on limit, which is why this is not a 5.

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?

The first sentence states a specific verb and resource ('search for issues') plus the distinguishing mechanism (YouTrack query language) and sorting support. It is clear what the tool does, but it never names or contrasts with close siblings like search_issues or search_with_filter, so an agent must guess which search variant to pick.

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 word 'advanced' implies this is for more expressive queries than a basic search, and the FORMAT example shows a compound query with sorting, which hints at appropriate use. However, there is no explicit when-to-use/when-not guidance and no named alternative for simple lookups, so the routing decision is left to inference.

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