Skip to main content
Glama

Verify Fix

verify_fix
Read-only

Checks whether a proposed fix resolved a failing test by comparing runs since a baseline against the original error, returning fixed, not_fixed, changed_failure, or unstable.

Instructions

Check whether a fix actually held for one test, against the run you saw when you proposed it. Splits the test's run history at that baseline and compares after against before, returning "fixed" (passing with no retries since), "not_fixed" (still failing with the same error), "changed_failure" (still failing, but a different error — a new investigation, and only when every failure since carried a comparable fingerprint), "still_failing" (still failing, but the errors cannot be compared, so neither same nor different can be claimed), "unstable" (passing only after retries, which is not fixed), "no_runs_since_baseline", or "baseline_not_found" (the run id is not one this test executed in). Call this after a new run lands. An unchanged error means the fix missed, not that the test is flaky. Identify the test by testcase_id (its pw_test_id, exact) or testcase_name; a title shared by several Playwright projects returns 409 AMBIGUOUS_IDENTITY (candidates name each project), so prefer testcase_id when you hold it. The baseline run must be one this test actually executed in — an id from another project or another test is rejected rather than answered.

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": {
      "projectId": "<projectId>",
      "baseline_run_id": "<baseline_run_id>"
    },
    "name": "verify_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesProject ID (e.g. project_<id>)
testcase_idNoThe test's pw_test_id — exact, never ambiguous. Wins over testcase_name.
testcase_nameNoFull test title, same identifier debug_testcase takes. Give this or testcase_id.
baseline_run_idYesThe run you saw the failure in when you proposed the fix
suite_file_pathNoSpec file path — only needed when the title is shared across files
playwright_projectNoPlaywright project name (e.g. "chromium") — only needed when the same title runs under several projects. Ignored with testcase_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / playwright_project
      Added value: +{
      +  "description": "Playwright project name (e.g. \"chromium\") — only needed when the same title runs under several projects. Ignored with testcase_id.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changedv2.2.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / testcase_id
      Added value: +{
      +  "description": "The test's pw_test_id — exact, never ambiguous. Wins over testcase_name.",
      +  "type": "string"
      +}
    • changedInput schema / properties / testcase_name / description
      Previous value: -"Full test title, same identifier debug_testcase takes"New value: +"Full test title, same identifier debug_testcase takes. Give this or testcase_id."
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "testcase_name",
      -  "baseline_run_id"
      -]New value: +[
      +  "projectId",
      +  "baseline_run_id"
      +]
  3. Addedv2.0.3

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, but the description still adds substantial behavior: the full set of outcome states, the 409 AMBIGUOUS_IDENTITY response with candidate projects, and the fact that a baseline from another project or test is rejected rather than answered. It lacks only details like cost or latency, which are minor here.

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?

It is a single dense paragraph, but it is front-loaded with the core question and every clause carries information — the status enumeration is necessary because there is no output schema. The mid-sentence lists of seven return values make it harder to scan than it needs to be, which keeps it off a 5.

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 six-parameter, read-only tool with no output schema, the description covers what the tool returns, the two error conditions, identity resolution rules, and baseline validity requirements. An agent can invoke it correctly and interpret every outcome without further documentation.

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 100%, so the baseline is 3, but the description adds meaning the schema cannot: it explains the precedence of testcase_id over testcase_name and the ambiguity failure mode, and clarifies that playwrigh_project is ignored when testcase_id is given. The remaining gap is that it does not restate the required projectId/baseline_run_id pairing, which the schema already handles.

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 opens with a specific verb and resource ("Check whether a fix actually held for one test") and immediately scopes it against a baseline run the agent previously saw, which makes it clearly distinct from siblings like debug_testcase or get_flake_verdict. The enumerated return statuses further pin down exactly what question the tool answers.

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?

It states the triggering condition explicitly ("Call this after a new run lands"), gives the negative case ("An unchanged error means the fix missed, not that the test is flaky"), and prescribes an identity strategy: prefer testcase_id, fall back to testcase_name, and add suite_file_path/playwright_project only when the title is shared. That is when/when-not plus alternatives in one place.

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