Skip to main content
Glama

Watch the page for a while

qa_watch

Starts a short, self-expiring watch on a browser tab to capture DOM changes, network requests, console errors, announcements, and layout shifts as buffered events for later review.

Instructions

THE ONE QUESTION THE OTHER VERBS CANNOT ANSWER: what happens over the next few seconds. Everything else here answers about NOW — a toast that appears and leaves, a request fired by a timer, a row that arrives late, a value a websocket rewrites are all invisible to a snapshot taken before or after them. Polling costs a call per look and still misses the gaps between looks. op:"start" begins a watch and returns its id; op:"read" hands back what it has buffered since the last read; op:"list" shows what is running; op:"stop" ends one early ("all" ends every one). Four things can be watched: "mutations" (the DOM, optionally scoped with within), "network" (requests as they start and finish), "console" (console output, JS errors, rejections), "announcements" (aria-live regions — what a screen reader would have said). EVERY WATCH EXPIRES BY ITSELF — ttlMs is capped at two minutes and there is no "until stopped". That is deliberate: a watch left running is silent, and the readings taken after it are the ones that go wrong. It observes and never acts, so it needs no consent beyond the bridge itself.

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_watch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoFor "read"/"stop": which watch (from "start"). "all" stops every watch.
opNostart · read · stop · liststart
nameNoA label for this watch, so a list of four is readable
omitNoDrop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want.
whatNoFor "start": what to watch — THE FIELD IS `what`, not `watch` or `kind` (a session lost two calls to that). Five kinds: mutations · network · console · announcements · shifts. "shifts" is the one nothing else can answer — the browser reports every layout jolt WITH THE NODES that moved and where they moved from, so «the page jumped» stops being a complaint and becomes a named element. The vocabulary is closed on purpose: a watch names what to observe, never a program to run. Missing a kind? Record it with qa_gap.
drainNoFor "read": default true — events are handed over once. Pass false to peek without consuming, at the risk of counting the same event twice.
limitNoFor "read": how many events to return (default 50)
matchNoKeep only events whose text matches this (case-insensitive pattern) — the cheapest way to make a noisy page answerable
tabIdNoTarget tab (from qa_tabs); omit for the active tab
ttlMsNoHow long to watch, 1s–120s (default 20s). It stops on its own at the end whatever else happens.
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.
withinNoFor "mutations": a CSS selector to watch inside, instead of the whole body — the difference between a readable answer and every repaint on the page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it declares the tool observes and never acts (read-only, no consent needed), that every watch self-expires with a two-minute cap and no indefinite mode, and why that cap is deliberate. What it does not disclose is the shape or size of what a read returns — only that it is 'buffered since the last read' — so an agent still cannot anticipate payload form, though it is told about limit/drain.

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?

Front-loaded with the differentiator, then ops, then the watchable kinds, then the TTL constraint — a sensible order. It is longer than needed for a schema this well documented, with rhetorical flourishes ('THE ONE QUESTION THE OTHER VERBS CANNOT ANSWER', 'the ones that go wrong') that cost space without adding decision-relevant information.

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 12-parameter, no-annotation, no-output-schema tool, it covers the decision-critical facts: which op for which stage of the lifecycle, the five watch kinds, scoping via within/match, and self-expiry. The main gap is return-value expectations — event shape, volume relative to limit, and what a list entry looks like — none of which the schema or an output schema supplies.

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; the description earns above that by explaining why `what` is named `what`, why `within` matters for mutations (repaint noise), and why `drain` matters (events handed over once). Most of the remaining parameter detail, including select/omit and ttlMs bounds, is restated from the schema rather than added to it.

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 — a time-scoped page watch that buffers events and returns them by id — and explicitly contrasts it with snapshot/polling approaches and with every other verb in the server. An agent can tell immediately this is the temporal-observation tool, not another read of current state.

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?

Gives an explicit selection rule (use it for what happens over the next few seconds; other tools answer about now) and names the failure mode of the alternative (polling costs a call per look and still misses gaps). It also enumerates the op vocabulary with what each does and routes unsupported kinds to qa_gap.

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