Skip to main content
Glama

What changed on this page — by control, not by pixel

qa_diff

Capture a page state, apply a change, then compare the two to report what appeared, disappeared, moved, resized, or changed state — naming causes instead of pixel counts.

Instructions

PIXEL DIFFS SAY «23 417 PIXELS DIFFER» AND LEAVE YOU TO FIND OUT WHY. This one says «the Submit button moved 8px down, its padding went 8 → 12, and it went disabled» — a sentence with a cause in it. op:"before" takes the state of the page as it is now; do the thing (a fix, a deploy, a click, a different branch); op:"after" compares. Reported: what appeared, what disappeared, and what moved, resized, changed state or changed a style that people argue about. Text content is deliberately NOT compared — a name, a total or a timestamp differs between two healthy runs, and reporting those is exactly the noise that gets visual diffing switched off everywhere else. Movements under 2px are the browser rounding a layout. When the two states cannot be matched at all — a virtualised list, a re-keyed render — it SAYS so instead of reporting three hundred false appearances.

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": {
      "op": "<op>"
    },
    "name": "qa_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes"before" remembers this page; "after" compares against it; "drop" forgets it
drawNoFor "after": write a PNG here with every changed control outlined and labelled with what changed
omitNoDrop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
selectNoKeep only these field paths, e.g. ["ok","fields[].name"]. Dots walk into objects, and a path through a list applies to every entry, keeping it a list. A path that matches nothing is reported back with the field names that ARE there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it discloses exactly what categories of change are reported, that text is excluded to avoid false noise, that sub-2px movement is ignored as rounding, and that unmatchable states are surfaced honestly rather than as false positives. It stops short on state-lifecycle questions — whether a second "before" overwrites the prior snapshot, whether snapshots expire, or whether "drop" is required to reset.

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?

The differentiator is front-loaded and the failure-mode and threshold notes are each a single useful sentence. Some of the framing is rhetorical — the all-caps opening and 'the noise that gets visual diffing switched off everywhere else' — which costs tokens without adding instruction, though it does reinforce the tool's value proposition.

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 five-parameter tool with no annotations and no output schema, the description covers the call sequence, the reporting contract, and the trust caveats an agent needs. The remaining gaps — snapshot lifecycle and what draw produces — are either minor or fully covered by the schema's field descriptions.

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%, so op, draw, omit, select, and tabId are all documented in the schema itself; baseline 3 applies. The description restates the op:"before"/"after" semantics slightly more richly by tying them to the 'do the thing between calls' workflow, but says nothing about draw, omit, select, or tabId, and never mentions op:"drop".

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 — it compares two page states and reports changed controls — and immediately contrasts that with pixel diffing, including a worked example ('the Submit button moved 8px down, its padding went 8 → 12, and it went disabled'). An agent knows exactly what this returns and how it differs from a screenshot-diff approach.

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?

It gives an explicit two-step workflow: call with op:"before" to snapshot, perform the action, then call with op:"after" to compare. It also names what the tool deliberately will not do (compare text content) and why, which effectively rules out a class of misuse. What's missing is any guidance on when to prefer a different sibling tool over this one.

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