Skip to main content
Glama

resolve_ticket_refs

Read-onlyIdempotent

Convert spoken ticket references such as bare numbers or keys into verified YouTrack tickets by matching nearby words, owner, and context across instances.

Instructions

Turn spoken ticket references into verified tickets, across instances.

Each ref is a bare number or a key, ideally with the words said around it: "4101 (queue lag alert)", "task 4102", "WEB-12". A bare number is tried in every likely project (YOUTRACK_REF_ROUTES context routes first, else every project of every instance) and each hit is checked against the words: an existing number is NOT a match by itself. Answers per ref: confident (one ticket), weak (top candidates to pick from), candidates (no words given — unverified list), exact (an explicit key that exists), or none.

Args: refs: References, one per item, each with its own nearby words. context: Words shared by all refs (meeting topic, team name). instance_hint: Only this instance (optional). owner: Person the work belongs to; an assignee match adds weight. format: "report" (default) or "json".

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": {
      "refs": "<refs>"
    },
    "name": "resolve_ticket_refs"
  }
}

Input Schema

NameRequiredDescriptionDefault
refsYes
ownerNo
formatNoreport
contextNo
instance_hintNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.40.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the description's job is to add resolution logic — and it does: bare numbers are tried against YOUTRACK_REF_ROUTES context routes first, then every project of every instance, with hits validated against the supplied words. The answer taxonomy (confident, weak, candidates, exact, none) discloses the output semantics an agent needs to interpret results.

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 purpose sentence, then resolution mechanics, then a compact Args block — good ordering with no filler. The Args list partly restates schema names, but adds defaults and meaning, so it earns most of its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, cross-instance resolver with an output schema, the definition covers mechanism, tie-breaking, result categories, and per-parameter intent. Nothing essential to invoking or interpreting it is missing.

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 carry all five parameters, and it does: refs (one reference per item, each with its own words), context (shared words), instance_hint (restrict to one instance), owner (assignee match adds weight), and format (enum values 'report'/'json' supplied here since the schema has no enum). The only ambiguity is how 'nearby words' are encoded into a plain string array element.

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 opening sentence names a specific verb+resource+scope: 'Turn spoken ticket references into verified tickets, across instances.' The word 'verified' distinguishes it from a plain text-search sibling like find_issues_for_text, and the following examples ('4101 (queue lag alert)', 'WEB-12') make the input shape concrete.

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?

It gives clear context for use (spoken references, ideally with the surrounding words) and states an important constraint: 'an existing number is NOT a match by itself.' However, it never names an alternative tool or says when NOT to use this one, so routing against siblings is implied rather than explicit.

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