Skip to main content
Glama

xray_add_tests_to_plan

Add one or more test issue IDs to an existing Xray test plan, so you can build or update plan coverage directly from your assistant.

Instructions

Add one or more tests to an existing Xray test plan.

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_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
issueIdYesJira issue ID of the test plan
testIssueIdsYesList of test issue IDs to add to the plan

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing beyond the mutation itself. It does not say whether the operation is additive/append-only, what happens when a test is already in the plan (duplicate vs. error vs. no-op), what permissions are required, or whether it is reversible (via xray_remove_tests_from_plan). For a bulk mutation tool this is a significant gap.

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?

A single front-loaded sentence with zero filler or repetition. It is efficient, though the brevity leaves the definition under-specified rather than tight-but-complete.

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 tool is simple (bulk append, 3 params, fully documented schema, no output schema), and the description covers the core action. However, it omits duplicate-handling behavior and failure conditions (nonexistent plan, invalid test IDs), which an agent needs to invoke it safely.

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 the format enum, making 3 the baseline. The description adds only marginal meaning: "one or more" corroborates testIssueIds minItems=1 and "existing" reinforces that issueId must reference a real plan. No format or ID syntax details are added.

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?

Specific verb+resource: "Add ... tests to an existing Xray test plan." The phrase "test plan" clearly distinguishes it from siblings that target executions, folders, sets, or preconditions, so an agent can route without opening the schema. It stops short of naming a sibling or describing scope limits (e.g., max batch size).

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?

Usage is only implied by the resource name: use it to attach tests to a plan. The word "existing" hints at a prerequisite (plan must already exist, created via xray_create_test_plan), but no explicit when-to-use, when-not, or alternative (xray_add_tests_to_execution) is stated.

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