Skip to main content
Glama

analyze_test_results

Read-onlyIdempotent

Reads JUnit XML reports of test runs (Playwright, Cypress, Jest, Vitest, pytest, Surefire…), oldest first, and tells regressions from flaky tests. Each test gets a status (regression, broken, new_failure, failing, flaky, recovered), a confidence (confirmed, probable, undecided) and its evidence; failures sharing a cause are grouped, environment errors flagged. Deterministic. verdict FAIL = regression or broken in the latest run, INCONCLUSIVE = undecidable.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "reports": [
        "<testsuite><testcase name=\"pay\"/></testsuite>",
        "<testsuite><testcase name=\"pay\"><failure message=\"500\"/></testcase></testsuite>"
      ]
    },
    "name": "analyze_test_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
commitsNoOptional: the commit of each report, same order. Same-commit pass+fail proves a flake.
reportsYesJUnit XML text of each run, oldest first (1 to 50).

Output Schema

NameRequiredDescriptionDefault
runsNo
testsNo
summaryNo
verdictNo
next_stepsNo
failure_groupsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses the classification taxonomy (regression, broken, new_failure, failing, flaky, recovered), confidence levels, cause grouping, environment-error flagging, and the meaning of FAIL vs INCONCLUSIVE. It also states determinism, which matters for repeat invocation.

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?

Dense and front-loaded: the input formats and the regression-vs-flaky purpose come first, then output taxonomy, then verdict definitions. The single long paragraph with parentheticals is slightly crammed but nearly every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still pre-frames the key result fields (status, confidence, verdict) so an agent can interpret results without a round trip. Combined with the input constraints and determinism note, nothing essential for correct invocation is missing.

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 coverage is 100% and both parameters already document ordering and the commit-alignment flake rule, so the description adds little beyond restating "oldest first". Baseline 3 is appropriate since the schema does the heavy lifting.

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 ("Reads JUnit XML reports of test runs"), enumerates the supported producers (Playwright, Cypress, Jest, Vitest, pytest, Surefire) and the core function ("tells regressions from flaky tests"). This is clearly distinct from siblings like analyze_diff_bugs or analyze_responses without needing to name them.

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 is implied by the input contract (JUnit XML, oldest first, 1-50 runs) and the verdict semantics tell the agent what a FAIL or INCONCLUSIVE result means. However there is no explicit when-to-use/when-not-to-use guidance or routing to an alternative tool for non-JUnit or single-run analysis.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.