Skip to main content
Glama

Check the whole screen

check_screen

Run accessibility audits or visual regression checks on an entire screen, returning identified issues or image diffs against a saved baseline.

Instructions

Check the whole screen. accessibility: an accessibility audit of contrast, touch targets, labels, reading order (types, maxIssues). visual: a visual regression test against the image name in dir, failing with CHECK_FAILED and a diff image past tolerance (percent of pixels); masks are left out. visual_baseline saves it. One element: check_element; pixels: take_screenshot. Returns the issues or the diff.

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": {
      "check": "<check>"
    },
    "name": "check_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNo
nameNo
checkYes
masksNo
typesNo
maxIssuesNo
toleranceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations (openWorldHint=false, destructiveHint=false) by disclosing the failure contract (CHECK_FAILED plus a diff image past tolerance, tolerance measured as percent of pixels), that visual_baseline writes a saved baseline, and the non-obvious caveat that masks are left out. It does not say whether visual_baseline overwrites an existing baseline or how long a visual check takes, which keeps it off a 5.

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?

Purpose is front-loaded and every clause carries information, with no filler or repetition of schema fields. The telegraphic, fragment-heavy style ('visual_baseline saves it.', 'One element: check_element; pixels: take_screenshot.') packs a lot in but costs a little readability on first pass.

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 three-mode, seven-parameter tool with no output schema, it covers the essential decision surface: mode semantics, the failure signal, the masks caveat, and the return value ('Returns the issues or the diff'). It leaves open the shape of accessibility issues, what dir defaults to when omitted, and where diff images are written, which are real but secondary gaps.

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?

With 0% schema description coverage the description must carry the parameters, and it largely does: check's modes are explained, types/maxIssues are tied to the accessibility audit, tolerance is defined as percent of pixels, and name/dir are tied to the baseline image. Residual ambiguity remains for masks ('masks are left out' is unclear as to whether they are ignored or unsupported) and for dir's default, since only check is required.

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 scope ('Check the whole screen') then immediately enumerates the three modes it performs: accessibility audit, visual regression, and baseline creation. It explicitly names the sibling it is not ('One element: check_element; pixels: take_screenshot'), so an agent can separate it from alternatives 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives per-mode selection guidance ('accessibility: an accessibility audit of contrast, touch targets, labels, reading order' vs 'visual: a visual regression test against the image name in dir' vs 'visual_baseline saves it') and routes the two adjacent cases to check_element and take_screenshot. Exclusions are explicit rather than inferred.

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