Skip to main content
Glama

xray_add_tests_to_precondition

Links one or more tests to an Xray precondition so the precondition appears as a setup requirement for those tests. Use it to make prerequisites explicit in your test management.

Instructions

Link one or more tests to an Xray precondition. The precondition will appear as a setup requirement for the linked tests.

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": {
      "issueId": "<issueId>",
      "testIssueIds": "<testIssueIds>"
    },
    "name": "xray_add_tests_to_precondition"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
issueIdYesPrecondition issue key, e.g. PROJ-123
testIssueIdsYesIssue keys of tests to link to this precondition

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/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, and it only partially discharges it: it explains the post-condition (the precondition becomes a setup requirement for the linked tests) but says nothing about whether linking is additive or replaces existing links, what happens to already-linked tests, permission/auth requirements, or failure behavior.

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?

Two front-loaded sentences with no filler: the action comes first and the effect on linked tests follows. Slightly more could be packed into the same space (e.g., whether links are additive), but nothing is wasted.

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?

The schema is small and fully documented and there is no output schema, but this is an unannotated mutation tool, so the description ideally should cover idempotency, auth, and duplicate-link behavior. Those gaps keep it at minimum-viable completeness.

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 issueId, testIssueIds, and format. The description's "one or more tests" reinforces the minItems=1 constraint but adds no format syntax, key examples, or guidance on the format parameter, so the baseline of 3 is appropriate.

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 pairs a specific verb ("Link") with a specific resource ("tests to an Xray precondition"), which cleanly separates it from the add_tests_to_execution/plan/set/folder siblings by resource alone. It does not explicitly name a sibling or an alternative, so it stops short of the top mark.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use, when-not-to-use, or alternative routing (e.g., when to use this versus xray_create_precondition or xray_update_precondition). Usage is only implied by the name and by the sentence about preconditions acting as setup requirements.

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