Skip to main content
Glama

check_ui

Verify a running web app after a UI change by capturing logged-in screenshots at chosen widths and interactions, plus text findings on layout shifts, errors, missed actions, and animation glitches.

Instructions

Look at a running web app after a UI change: screenshots (logged in via agent-eyes.config.json, at the widths you ask, after clicks/hovers), plus findings as text: horizontal scroll, content that jumped after load, page errors, server 5xx, actions that missed, and animation glitches (shrink, snap, flicker, freeze). Returns image file paths with their token cost; open only the ones you need with view_image. Put every screen and interaction in one call.

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": {
      "checks": "<checks>"
    },
    "name": "check_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoFolder for the images (default ./agent-eyes-out). Use a separate folder to keep a baseline before editing.
varsNoValues for {name} in routes, e.g. {"id":"42"}.
waitNoMilliseconds to wait after each page loads (default 1200).
checksYesEverything to verify, in one call.
configNoConfig file, if not ./agent-eyes.config.json.
widthsNoDefault widths for checks that give none (default: the config's, else 1440 and 390).
baseUrlNoe.g. "http://localhost:3000". Optional when agent-eyes.config.json has "baseUrl".
compareNoFolder of a previous run: each screenshot is compared pixel by pixel with the one of the same name. "identical" means nothing to look at; otherwise one side-by-side image with the changed regions boxed in red, listed as text.
projectDirNoAbsolute path of the project (where agent-eyes.config.json lives, and where relative paths resolve). Default: the server's working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 well: it discloses authentication via agent-eyes.config.json, that output is image file paths carrying a token cost, and the exact categories of text findings reported. It does not warn that the actions list actually clicks and types into the live app (mutating state), nor does it mention runtime or timeouts — the main undisclosed behaviors.

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-loads what the tool does before the long findings list, and the closing two sentences about token cost and view_image are short and useful. The lead sentence is dense and comma-heavy, but nearly every clause carries information an agent needs to plan the call.

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 nine-parameter tool with nested check objects and no output schema, the description covers the essentials: auth source, what is returned and in what form, how images should be consumed downstream, and the batching rule. Gaps are the side effects of executing actions against a live app and any performance/timeout expectations.

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 every one of the nine parameters is already documented in structured form. The description adds only light framing — widths you ask for, clicks/hovers, baseline comparison via a separate folder — and no syntax or interaction detail beyond the schema. Baseline 3 is appropriate.

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 opening clause names a specific verb and resource — visually inspecting a running web app after a UI change — and enumerates the exact outputs (screenshots at requested widths, text findings for overflow, layout shift, page errors, 5xx, missed actions, animation glitches). It also distinguishes itself from the sibling view_image by saying images come back as paths to open later.

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 clear operating guidance: put every screen and interaction in one call, and use view_image for the individual images you actually need. That routes the agent away from redundant calls and explains the batching expectation. It stops short of stating when this tool is the wrong choice entirely (e.g. non-UI verification or static analysis).

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

Deploy Server

Other Tools