Skip to main content
Glama

xray_add_defects_to_run

Link Jira issues as defects to a test run by passing its internal ID and an array of issue keys such as PROJ-123, associating each Jira defect with that run's results.

Instructions

Link Jira issues as defects to a test run. Pass an array of Jira issue keys (e.g. PROJ-123). For Jira issue fields, use the Atlassian MCP server instead.

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": {
      "id": "<id>",
      "issues": "<issues>"
    },
    "name": "xray_add_defects_to_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTest run internal ID
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
issuesYesJira issue keys to link as defects, e.g. ['PROJ-123']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/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 behavioral burden. It usefully discloses a scope boundary (this tool does not edit Jira fields) but says nothing about whether the call appends to or replaces existing defects, how duplicate issue keys are handled, or what permissions are required. For a mutation tool, those omissions are notable.

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

Conciseness5/5

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

Three short sentences with the action front-loaded, followed by the key-format hint and the routing note. Nothing is redundant, and each sentence contributes either purpose, input shape, or a boundary condition.

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?

With 3 fully documented parameters and no output schema, the input side is adequately covered. However, as a mutation tool with zero annotations and no return-value description, it leaves open what a successful link returns and how existing defects interact with the new ones.

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 100%, so the schema already documents id, issues, and the format enum in detail. The description's example key format (PROJ-123) mirrors what the issues parameter description already states, adding little beyond the structured data. Baseline 3 applies.

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 description opens with a specific verb and resource: "Link Jira issues as defects to a test run." The phrase "to a test run" scopes the operation and implicitly separates it from the sibling xray_add_defects_to_step, which targets a step. It stops short of naming that sibling explicitly, so the differentiation is inferable rather than stated.

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 a clear condition for use (linking defects to a run) and a useful boundary rule: for Jira issue fields, go to the Atlassian MCP server instead. There is no explicit when-not guidance, and the inverse operation xray_remove_defects_from_run is never mentioned, but the intended context 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