Skip to main content
Glama

xray_import_junit

Import JUnit XML test results into Xray Cloud from Java, Maven, or Gradle builds by passing the XML content and optional execution metadata to create or update test executions.

Instructions

Import JUnit XML test results. Read the XML file via your Read tool and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push JUnit test results from Java/Maven/Gradle builds 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_junit"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
contentYesJUnit XML content as a string
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.8/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 burden. It usefully discloses the required two-step workflow (Read then pass content) and that testExecInfo unlocks multipart behavior, but it does not say whether import creates a new test execution by default, what happens to duplicate test keys, or what the response contains.

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, front-loaded with the core action and immediately followed by the required calling convention. The trailing 'Use this tool to push...' sentence mostly restates the purpose, but it earns some place by naming the source build systems.

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 has six parameters including a nested object, no annotations, and no output schema, so the description should carry more weight. It covers the input mechanism and optional metadata well but leaves the import outcome (created execution key, created/updated tests) and update-vs-create semantics for testExecKey unexplained.

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 explains content, projectKey, testExecKey, testPlanKey, and the nested testExecInfo fields. The description confirms content must be the full file and that testExecInfo is optional execution metadata, adding light but not substantial meaning beyond the schema.

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?

The first sentence states a specific verb and resource ('Import JUnit XML test results'), and the closing sentence names the source ecosystems (Java/Maven/Gradle builds into Xray Cloud). This distinguishes it from the format-specific siblings such as xray_import_testng, xray_import_nunit, and xray_import_cucumber without needing to open the schema.

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

Usage Guidelines4/5

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

It gives a clear operational instruction: read the XML with the Read tool and pass the full content, and points to testExecInfo as an optional path for execution-level metadata. It does not explicitly say when to prefer a sibling format importer or how it behaves when an existing testExecKey is supplied, but the usage context is clear.

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