Skip to main content
Glama

xray_add_defects_to_step

Link Jira issue keys as defects to a specific step in an Xray test run for traceable failure tracking.

Instructions

Link Jira issues as defects to a specific step within a test run. 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": {
      "testRunId": "<testRunId>",
      "stepId": "<stepId>",
      "issues": "<issues>"
    },
    "name": "xray_add_defects_to_step"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior2/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 does not say whether linking is idempotent, what happens when an issue is already linked or does not exist, whether it fails on invalid step IDs, or whether the operation is reversible – all material for a mutation tool.

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?

Two short sentences, purpose front-loaded, and the second sentence carries a distinct routing instruction rather than filler. Nothing is redundant.

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?

For a simple four-parameter mutation with full schema coverage and no output schema, the description covers what the tool does and where to go for related data. It is still thin on mutation side effects and failure modes, which matter more here because no annotations exist to cover them.

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%, with issue-key examples, ID semantics, and the format enum all documented in the schema. The description adds no meaning beyond that, which is acceptable at this coverage level but earns only the baseline.

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 gives a specific verb and resource ('Link Jira issues as defects') plus scope ('to a specific step within a test run'), which distinguishes it from the run-level sibling xray_add_defects_to_run. It never names that sibling explicitly, so differentiation is implied by scope 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It offers one useful routing rule: use the Atlassian MCP server for Jira issue field data. However, it never states when to link at the step level versus the run level, nor does it mention the reciprocal removal tool, leaving the main selection decision to inference.

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