Skip to main content
Glama

Flakeprint

Explain a flaky test

explain_test
Read-only

Evidence for one test (outcomes on the same commit and settings, fingerprints, durations, environments) plus, when the backend has Gemini configured, AI hypotheses and investigation steps. Facts and hypotheses are kept separate; if AI is down the facts are still complete. If the hypotheses are still being generated (aiStatus pending), call it again in about a minute. Cached per evidence.

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": {
      "repo": "<repo>",
      "test": "<test>"
    },
    "name": "explain_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesGitHub repository as owner/name
testYesThe test: idHash from list_tests, or (part of) its name or test ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds substantial unseen behavior: results depend on whether the backend has Gemini configured, facts remain complete if AI is down, hypotheses may be pending and require a delayed re-call, and results are cached per evidence. These are exactly the operational traits an agent needs before deciding to retry or trust partial output.

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?

Four sentences, each carrying distinct information: payload contents, AI dependency, degradation behavior, and retry/caching behavior. The parenthetical inventory is dense but front-loads what the agent gets back. The closing fragment 'Cached per evidence' is terse to the point of ambiguity but does not waste space.

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?

With no output schema, the description carries the burden of describing return content and does so (outcomes, fingerprints, durations, environments, hypotheses, investigation steps). Degradation and pending states are covered. The only residual gaps are the vague 'cached per evidence' phrasing and no indication of how the response is structured.

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%, with both repo ('owner/name') and test (idHash, name, or test ID) fully documented in the schema, so the baseline is 3. The description adds only the notion that evidence is grouped by 'the same commit and settings', which hints at scoping but gives no extra syntax or format detail beyond the schema.

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?

The description names a specific resource and scope: evidence for one test, including outcomes on the same commit/settings, fingerprints, durations and environments, plus optional AI hypotheses. The title 'Explain a flaky test' reinforces the verb-like intent. It does not differentiate itself from the sibling get_test, so an agent cannot tell from the text which of the two to call for a single test's data.

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 (investigating a flaky test) rather than stated, and no alternative is named despite get_test and analyze_reports existing as plausible overlaps. The one concrete operational rule is the retry instruction: if aiStatus is pending, call again in about a minute. That is useful but is re-invocation guidance, not when-to-use guidance.

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.