Skip to main content
Glama

xray_import_nunit

Import NUnit XML test results into Xray Cloud to record .NET test outcomes and optionally attach execution-level metadata such as summary, description, or version.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
contentYesNUnit 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 disclosure burden. It does communicate useful behavior (the entire XML must be supplied as content, and testExecInfo switches to multipart/form-data for execution-level fields), but it stays silent on whether a new test execution is created when testExecKey is absent, whether existing results are overwritten, and what the call returns.

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 purpose and immediately followed by the key input instruction. The final sentence ('push NUnit test results from .NET projects into Xray Cloud') largely restates the first and could be dropped, keeping it just short of a 5.

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 tool with a nested object, no annotations, and no output schema, the description covers the essential input contract but leaves material gaps: how projectKey/testExecKey/testPlanKey relate to creation versus update, what happens on malformed XML, and how results are returned.

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 input schema already documents all six parameters and the nested testExecInfo fields; the description only reinforces 'content' (full XML) and the purpose of testExecInfo, adding no meaning for projectKey, testExecKey, testPlanKey, or the format enum, so the 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?

The description names a specific verb and resource ('Import NUnit XML test results') and scopes the source ('NUnit test results from .NET projects'), which lets an agent distinguish it from the sibling importers keyed to JUnit, TestNG, Cucumber, Behave, and Robot 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 Guidelines4/5

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

It gives a clear usage context ('use this tool to push NUnit test results from .NET projects') and instructs the caller to pass the full XML file content, but it never names a sibling alternative or states an exclusion (e.g. when to prefer the JUnit importer), so routing still requires the agent to infer the format match.

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