Skip to main content
Glama

get_test_history

Read-onlyIdempotent

Fetch automated test history across runs to analyze attempt-level executions, pass rates, and flakiness, helping identify broken vs flaky tests.

Instructions

Get the history of one AUTOMATED test across launches, newest first. Returns executions and summary - the attempt rows are in executions, matching get_case_execution_history, and there is NO history key. The headline figures are NESTED under summary rather than at the top level: totalExecutions, passRate, flipCount and reliabilityStatus. titlePath takes ONE segment of the path - the argument is titlePath, not title - and matching is a case-insensitive substring, so it can hit many tests. The response says how many: matchedTests is the number of DISTINCT tests the substring found, matchedTitlePath is the one these figures describe (the most recently seen), and otherMatches lists up to ten of the rest. A common leaf title such as should reject unauthenticated request matches 25 tests in one project here. When matchedTests is above 1, narrow the substring before quoting anything: the summary describes matchedTitlePath alone, never the group. IMPORTANT: there is one row per retry ATTEMPT, not per launch, so a test retried three times inside one launch contributes three rows; the retry field is 0-based and tells them apart. Group by runId before quoting anything as a per-launch figure, because totalExecutions and passRate are attempt-level. Each row carries testId, titlePath, filePath, runId, runName, runStartedAt, runTags, status and durationMs. reliabilityStatus is derived from the pass ratio over the window and does NOT separate a test that fails every retry from one that passes on a later retry; read retry and flipCount together to tell broken from flaky. limit bounds the summary as well as the list, and days defaults to 30. search_tests will find a segment for you. Use get_case_execution_history for how a MANUAL case has fared, and get_launch_tests for every test inside one launch rather than one test across many.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoLookback period in days
limitNoMaximum number of executions to return
projectIdYesProject UUID
titlePathYesONE segment of the title path, normally the test name itself (e.g. "should validate credentials"). Matching is a case-insensitive substring of the stored title-path array, so a " > "-joined path matches nothing and returns an empty history rather than an error. search_tests and get_launch_tests return titlePath as an array - pick one segment out of it.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.5.0

TDQS

A5/5.0
Behavior5/5

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

Despite readOnlyHint=true, the description adds substantial behavioral detail not inferable from annotations: one row per retry attempt, 0-based retry field, no history key, summary nesting, matchedTests count, matchedTitlePath selection, and reliabilityStatus limitations. It fully discloses edge cases and response semantics.

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?

The description is dense but every sentence conveys a distinct, necessary caveat or fact. It opens with the core purpose, then systematically addresses response structure, common pitfalls, retry semantics, and alternative tools. No redundant phrases, and the warnings are grouped logically.

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?

For a tool with no output schema, the description thoroughly explains the return shape, nested summary fields, edge cases, and interpretation guidance. It covers all four parameters, identifies behavioral pitfalls, and routes to sibling tools where appropriate. Despite length, it leaves little room for an agent to misinvoke.

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

Parameters5/5

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

Schema coverage is 100%, but the description goes far beyond schema text by explaining titlePath is a single segment, matching is case-insensitive substring, how substring ambiguity works, and how limit and days affect the response. It clarifies the relationship between matchedTests and matchedTitlePath, which is essential for correct parameter use.

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 states a specific verb and resource: 'Get the history of one AUTOMATED test across launches, newest first.' It clearly distinguishes from related tools by defining the exact scope (one test across launches) versus get_case_execution_history for manual cases and get_launch_tests for all tests in one launch.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description gives explicit when-to-use and when-not-to-use guidance, naming alternatives: 'Use get_case_execution_history for how a MANUAL case has fared, and get_launch_tests for every test inside one launch rather than one test across many.' It also warns when multiple tests match and advises narrowing the substring.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/m00nreport/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server