Skip to main content
Glama
qa-triage-mcp
by mnawaz6935

Ingest JUnit report

ingest_junit_report
Idempotent

Load a JUnit XML report into test history to track CI results from pytest, Playwright, Cypress, Jest, JUnit, or TestNG, and skip duplicate imports.

Instructions

Load one JUnit XML report into the history. Works with pytest, Playwright, Cypress, Jest, JUnit, TestNG. Branch/commit/job default to the report's . Ingesting the same file twice does nothing.

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": {
      "path": "<path>"
    },
    "name": "ingest_junit_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath relative to the reports folder, e.g. nightly-030.xml
branchNoGit branch, e.g. main
ci_jobNo
commit_shaNo

Output Schema

NameRequiredDescriptionDefault
totalYes
errorsYes
failedYes
passedYes
run_idYes
skippedYes
duplicateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is supplied structurally. The description adds real value by explaining that branch/commit/job fall back to the report's <properties> when omitted, and clarifies the mechanism of idempotency ('ingesting the same file twice does nothing'). It does not cover failure behavior for malformed XML, size limits, or whether re-ingestion overwrites differing metadata.

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 action and resource, then supported formats, then the defaulting and idempotency notes. Every sentence carries information, though the idempotency sentence partially restates idempotentHint=true from the annotations.

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?

An output schema exists, so return values need not be described. For a write tool with four parameters, the definition covers the defaulting behavior well but leaves out error handling and what 'history' means in terms of scope or retention, which an agent might need before ingesting.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% (path and branch are documented, ci_job and commit_sha are not). The description compensates by explaining the defaulting rule that applies to all three optional parameters, which is genuine meaning not encoded in the schema. It still says nothing about expected formats for ci_job or commit_sha beyond the regex patterns.

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?

States a specific verb and resource: 'Load one JUnit XML report into the history', plus the list of supported producers (pytest, Playwright, Cypress, Jest, JUnit, TestNG) that clarifies what counts as an acceptable input. It does not distinguish itself from siblings such as list_report_files or compare_runs, so sibling differentiation is absent.

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?

Usage context is implied by the supported-framework list and the single-file scope ('one JUnit XML report'), and the idempotency note hints at safe re-ingestion. There is no explicit statement of when to use this instead of another tool, nor prerequisites such as the file having to already exist in the reports folder beyond what the schema says.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.