Skip to main content
Glama

xray_import_xray_json

Import Xray JSON test results into Xray Cloud by passing full JSON content as a string, with optional execution metadata for summary, description, and version.

Instructions

Import test results in Xray JSON format. Pass the full JSON content as a string. Supports optional testExecInfo for execution-level metadata (summary, description, version). Use this tool to push Xray-native JSON test results into Xray Cloud.

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": {
      "content": "<content>"
    },
    "name": "xray_import_xray_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
contentYesXray JSON format test results as a string. Pass the complete JSON content.
projectKeyNoJira project key
testExecKeyNoExisting test execution key to update
testPlanKeyNoTest plan key to associate results with
testExecInfoNoTest execution metadata for multipart mode. When provided, import uses multipart/form-data to include execution-level fields (summary, description, version, etc.) that are not available in simple mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/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 usefully discloses that supplying testExecInfo switches the import into multipart mode with execution-level fields, but it says nothing about permissions/auth, whether existing tests are created or matched, whether testExecKey causes an update versus a create, or what errors look like.

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?

Three short sentences with the format and required argument front-loaded. The final sentence largely restates the opening ('Import test results in Xray JSON format' vs 'push Xray-native JSON test results into Xray Cloud'), which is minor redundancy rather than harm.

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 write-style import tool with six parameters, a nested object, no annotations, and no output schema, the description is adequate but thin — it never explains the response, duplicate-handling, or how projectKey/testPlanKey interact with the values inside the JSON payload. An agent could invoke it, but not predict its side effects.

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 every parameter including the nested testExecInfo fields is already documented in structured form. The description reinforces that content must be the complete JSON as a string and names the testExecInfo metadata fields, but adds no syntax, size limits, or format details beyond the schema — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Import test results') plus the exact accepted payload format ('Xray JSON'), which is precisely what separates it from the format-specific siblings (junit, nunit, cucumber, behave, etc.). An agent can select this tool over those without opening any schema.

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 closing sentence gives a use statement ('push Xray-native JSON test results into Xray Cloud'), which implies the correct context, but it never explicitly says when to choose this over the other importers or when not to use it. Format selection is left to be inferred from the tool name and description 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