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

Test history

test_history
Read-only

Shows a test's pass rate, current streak, and the run and commit where its failure streak began, helping you determine when the test started failing.

Instructions

One test across recent runs: pass rate, current streak, and the run (and commit) where the current failure streak began. Use it to answer "when did this start failing?".

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": {
      "test_id": "<test_id>"
    },
    "name": "test_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
test_idYesTest id as "<classname>::<test name>", e.g. tests.unit.test_tax::test_vat_standard_rate

Output Schema

NameRequiredDescriptionDefault
fileYes
runsYes
historyYesNewest first
test_idYes
pass_rateYes
last_passedYes
failing_sinceYesFirst run of the current failing streak, if failing now
current_statusYes
current_streakYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false so the safety profile is covered. The description adds useful behavioral context about what the result contains (streak, first failing run and commit), but says nothing about how far back 'recent' reaches or what happens when the test has no recorded runs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler: the return content is front-loaded and the use case follows as a concrete question. Every clause earns its place.

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

Completeness4/5

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

For a read-only, single-argument tool with an output schema, this covers purpose and primary use well. The remaining gaps—scan window semantics via limit and edge cases for tests with no run history—are minor but real.

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 50%: test_id is fully documented in the schema with a format pattern and example, while limit has no description at all. 'Recent runs' hints that a window exists but the description never explains that limit controls how many runs are scanned (default 30, max 200), leaving that meaning only in defaults and bounds.

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 resource and scope ('one test across recent runs') plus the exact outputs: pass rate, current streak, and the origin of the current failure streak. It is clearly not the aggregate tools (cluster_failures, compare_runs), but it never names a sibling, so differentiation is implicit rather than explicit.

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?

Gives an explicit use case with a quoted question it answers: 'when did this start failing?'. That is clear when-to-use context, but there are no when-not conditions or named alternatives for overlapping needs like flakiness detection (find_flaky_tests).

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