Skip to main content
Glama

Mark a screenshot by naming elements, not coordinates

qa_annotate

Annotate screenshots with selector-anchored boxes, pins, arrows, labels, and blurs so marks track elements after re-renders; draw page findings directly and report missed elements.

Instructions

A MARK THAT KNOWS WHAT IT POINTS AT. Name the element — a CSS selector — and the box is looked up from the page itself at capture time, so the same instruction draws the correct picture today, after a fix, and at another screen width. An arrow drawn on an ordinary screenshot points at a coordinate: right when it was drawn, wrong the moment anything re-renders. That is why annotated screenshots are disposable, and it is the whole difference here. It is also how a picture marks ITSELF: a finding already carries a selector, so «draw the contrast failures» needs no aiming — pass their selectors straight through. Shapes: box (outline it), pin (a numbered dot at its corner — for ordered things like a tab route), arrow and line (from one element to another, which is how you show an error message wired to the wrong field), and blur (a pane that makes the element unreadable — an address, a customer's name, a token in a staging header). Colours are named, not free: default · bad · good · info · warn. A LABEL IS A CALLOUT, not a sticker: it is placed in free space beside its element, clear of every other mark, and joined to the outline by a leader line ending in a dot. So «outline the payment block and say what is wrong with it» comes back as one readable statement instead of words stamped over the thing they are about. A mark whose element is not on the page is REPORTED in missed, never silently dropped — a reader who sees three arrows must be able to trust that there were three things to point at. Read-only: it photographs and draws, and touches nothing — a blur hides the data in THIS picture, never on the page, so the next capture shows it again.

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

Input Schema

NameRequiredDescriptionDefault
pathNoWrite the marked PNG here instead of returning it inline
marksNoUp to 60 marks. More than that covers the picture instead of marking it.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
fromFindingsNoInstead of naming marks yourself, DRAW THE PAGE'S OWN FINDINGS: every finding that carries a selector becomes an outlined box with its title beside it, coloured by severity. A finding already knows where it is, so nobody has to aim — this is the picture a tester currently makes by hand, one arrow at a time. Combine with `marks` to add your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description must carry the behavioural burden, and it does: it declares the tool read-only, states that blur affects only the rendered picture and never the page, specifies a hard cap of 60 marks, and says unresolved selectors are reported in `missed` rather than dropped. The remaining gap is that aside from `missed` and the `path` parameter it does not describe the returned payload, which matters because there is no output schema.

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 core facts are front-loaded well enough, but the prose is heavily rhetorical — 'A MARK THAT KNOWS WHAT IT POINTS AT', 'it is the whole difference here', 'a picture marks ITSELF' — and several sentences restate the same selector-vs-coordinate contrast. The information is dense and useful, yet an agent pays for stylistic flourishes that do not change its decision.

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 four-parameter tool with no annotations and no output schema, the description covers the important unknowns: safety profile, redaction semantics, failure reporting via `missed`, the mark cap, and the shape/colour vocabulary. It is close to self-sufficient; only the shape of the successful return (inline image versus path) is left to the schema.

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 real meaning beyond the field descriptions: it explains what each kind is for (pin for ordered things like a tab route, arrow/line for element-to-element relations, blur for redacting a pane), that colours are a closed named set, and that a label becomes a callout placed in free space with a leader line. That is genuine semantic enrichment over enumerations the schema only lists.

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 — draw marks on a screenshot by naming a CSS selector rather than a coordinate — and contrasts that directly with the ordinary coordinate-based annotation it replaces. The element-lookup-at-capture-time behaviour is named explicitly, so an agent can tell what distinguishes this tool without opening the 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?

It provides concrete when-to-use situations (drawing findings, outlining a payment block, wiring an error message to the wrong field) and an explicit exclusion: coordinate marks you draw yourself become stale after a re-render, so pass selectors instead. It also names an alternative path — fromFindings to draw the page's own findings rather than naming marks by hand. What is missing is any explicit pointer to a sibling tool by name, so the routing cue is implied rather than stated.

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