Skip to main content
Glama

Photograph this screen in every way it can fail

qa_failure_gallery

Generates a self-contained HTML gallery of forced page failure states—empty, 500, 403, slow, dropped—by mocking requests, reloading, screenshotting each state, then removing rules.

Instructions

THE PICTURES NOBODY EVER TAKES: the empty list, the 500 with the server's own words, the spinner that never resolves, the 403, the dropped connection. Every other capture tool can only photograph a failure that happens to occur — this one CAUSES it, because the response mocks and the camera are the same product. It walks the states one at a time: sets a rule, reloads, waits for the page, photographs it, removes the rule, moves on — and writes one self-contained HTML file with every picture embedded, which opens in any browser without this extension. That file is the point: the designer and the product owner who need to see the error states do not have Qiksy and never will. The rules are ALWAYS removed at the end, including when something throws — a rule left behind outlives the reason for it and makes the next measurement on the tab a lie. Scope is the mocks' own: the page's fetch/XHR in the top frame, so an app fed by a WebSocket will show a gallery of healthy screens and say so. Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "qa_failure_gallery"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoWhich requests to break — a substring of the URL, or /regex/flags. Omit to break every request the page makes (usually what you want).
fullNoPhotograph the whole page instead of the visible part (slower — each state is a scroll-and-stitch)
pathNoWrite the HTML sheet here (default: ~/.qiksy/failures-<host>-<time>.html). You get back the path.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
statesNoWhich failures to photograph. Default: all of them — empty, server-error, forbidden, slow, dropped.
maxWidthNoCap the width of each picture in the sheet (default 1200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it discloses the mutation sequence (set rule, reload, wait, photograph, remove rule), the cleanup guarantee including on throw and why a leftover rule corrupts later measurements, the consent gate that returns 'consent-required' and no-ops otherwise, and the binding scope limit. These are exactly the side effects and preconditions an agent needs before running a tool that reloads the user's tab.

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

Conciseness3/5

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

The dramatic all-caps opening and long discursive sentences bury operational facts mid-paragraph, and the hard precondition (consent confirmation) sits in the last sentence rather than up front. Most sentences do carry real information — cleanup, scope, consent — but the prose could be tightened without losing any of it.

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 tool with no output schema, the description covers everything that matters: what the artifact is and who consumes it, that the returned path is the deliverable, the state-by-state execution model, the guaranteed cleanup on error, and the consent gate that can cause a silent no-op. Little an agent needs in order to call this correctly is missing.

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 the schema already documents url, full, path, tabId, states, and maxWidth, and the description only echoes the states list and the returned path. It adds no new meaning for full (stitching), tabId, or maxWidth beyond what the schema says. Baseline 3 is correct when the schema does the heavy lifting.

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?

States a specific verb and resource — it drives the mocked failure states one at a time, photographs each, and writes a single self-contained HTML sheet. It explicitly distinguishes itself from siblings: 'Every other capture tool can only photograph a failure that happens to occur — this one CAUSES it.' An agent can tell it apart from qa_collect/qa_export without opening any schema.

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 clear use context: it is for showing error states to designers and product owners who do not have Qiksy, and it names the preconditions (one-time 'Agent control' confirmation) and the scope exclusion (fetch/XHR in the top frame only; WebSocket-fed apps will produce a gallery of healthy screens). It stops short of explicitly naming a sibling as the fallback for naturally occurring captures, which keeps it below a 5.

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