Skip to main content
Glama

xray_add_environments_to_execution

Adds test environments to an existing Xray test execution by issue key, letting you associate environments such as Chrome or Firefox with a specific execution.

Instructions

Add test environments to an existing test execution.

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>",
      "testEnvironments": "<testEnvironments>"
    },
    "name": "xray_add_environments_to_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
issueIdYesTest execution issue key, e.g. PROJ-456
testEnvironmentsYesEnvironment names to add, e.g. ['Chrome', 'Firefox']

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, yet it says nothing about idempotency, what happens when an environment is already attached, whether duplicates error out, required permissions, or whether the execution's existing environments are preserved. For a mutating add operation with zero annotation coverage, 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 well-formed sentence with the action front-loaded and no wasted words. It earns its place but is arguably too terse for a mutating tool, leaving no room for operational caveats.

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

Completeness2/5

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

The tool mutates an existing execution, has no annotations and no output schema, so the description should explain duplicate handling, error conditions, and whether the response reflects the updated environment list. None of that is present, leaving the definition thin relative to the operation's 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%, so the schema already documents issueId, testEnvironments with examples, and the format enum. The description adds no meaning beyond that structured detail, which is the expected baseline when the schema does the heavy lifting.

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 uses a specific verb and resource ('Add test environments to an existing test execution'), which lets an agent distinguish it from xray_remove_environments_from_execution and from the add_tests/add_defects siblings by the object being modified. It does not explicitly name or contrast with any sibling, so it stops short of 5.

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 guidance on when to use this tool rather than xray_create_test_execution or the remove counterpart, and no preconditions are stated (e.g. the execution must already exist, environments must be valid in the project). The agent must infer all usage context from the name alone.

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