Skip to main content
Glama

xray_import_testng

Import TestNG XML test results into Xray Cloud from Java projects, with optional execution metadata such as summary, description, and version.

Instructions

Import TestNG XML test results. Read the TestNG XML output file and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push TestNG test results from Java projects 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_testng"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
contentYesTestNG 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

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it says nothing about what the import creates or overwrites, whether duplicate executions are produced, or what permissions are required. The note about multipart mode when testExecInfo is supplied is useful but largely repeats the schema's own wording rather than adding new behavioral context.

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 tight sentences, front-loaded with the action and the required input, followed by optional metadata and the intended context. No wasted wording, though the final sentence could be merged with the first to reduce redundancy.

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 six-parameter import with a nested object, no annotations, and no output schema, the description covers the core call pattern adequately. It leaves gaps around prerequisites, error behavior, and what the import returns, which matter given the absence of both annotations and an output schema.

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 all six parameters (including nested testExecInfo fields) are already documented, establishing a baseline of 3. The description reinforces that the full XML content must be passed as a string and that testExecInfo is optional metadata, but adds no format examples or syntax guidance beyond the schema.

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 ('Import TestNG XML test results') and reinforces the source format twice, which implicitly separates it from the sibling importers for JUnit, NUnit, Cucumber, etc. It stops short of explicitly naming an alternative, so the differentiation relies on the agent noticing the format-specific names.

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?

'Use this tool to push TestNG test results from Java projects into Xray Cloud' gives clear context for when to select it. There are no explicit exclusions or prerequisites (e.g., auth, when to prefer xray_import_xray_json instead), so it lands just under the top band.

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