Skip to main content
Glama

add_tests_to_test_plan

Adds one or more tests to an existing Xray test plan using the plan key and test issue keys.

Instructions

Add tests to an existing test plan via Xray GraphQL (requires Xray credentials).

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": {
      "plan_key": "<plan_key>",
      "test_keys": "<test_keys>"
    },
    "name": "add_tests_to_test_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_keyYesJira issue key of the test plan (e.g. "PROJ-100")
test_keysYesTest issue keys to add (e.g. ["PROJ-1", "PROJ-2"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does contribute real context by disclosing the mutation nature and the Xray credentials requirement, which an agent needs before calling. However, for a batch mutation taking an array of test keys it says nothing about duplicate handling, idempotency, or partial-failure/all-or-nothing semantics, which are the behaviors most likely to cause incorrect invocation.

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?

A single front-loaded sentence with the action first and the credential caveat in parentheses. Nothing is wasted and nothing is buried.

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

Completeness4/5

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

For a two-parameter, fully documented tool with no output schema, the definition covers the action, target, backend, and auth prerequisite. The remaining gap is batch behavior (duplicates, partial failure) and what the call returns, which is modest for this complexity.

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%: both plan_key and test_keys carry descriptions plus concrete examples ("PROJ-100", ["PROJ-1", "PROJ-2"]). The description adds no meaning beyond the schema, so the 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 names a specific verb and resource ("Add tests to an existing test plan") and distinguishes it from the sibling add_tests_to_test_set by naming the target container. It also identifies the backend mechanism (Xray GraphQL), so an agent knows which API surface is involved. It stops short of an explicit sibling contrast, but the resource is unambiguous.

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?

The word "existing" implies a precondition: the test plan must already exist, so create_test_plan is the alternative for new plans. Beyond that there is no when-to-use/when-not guidance, no mention of when add_tests_to_test_set would be preferred, and no note on what to do if a test is already in the plan.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.