Skip to main content
Glama

check_preview

Checks a Hillnote Builds page in a hidden browser after changes, reporting console errors, uncaught exceptions, failed requests, and a screenshot so you can verify it works.

Instructions

Check a page of the app you are building (a Hillnote Builds project) the way the user would see it: Hillnote loads it in a hidden browser window and reports console errors and warnings, uncaught exceptions and failed requests, with a screenshot (returned as an image, and saved as a PNG). Use it after a change to see whether the page works. Pages of this computer's own servers only (localhost). Without url: the app Hillnote is running for the open project; a path such as "/settings" is a page of that app. Each check starts like a new visitor (no cookies or storage). Requires the Hillnote app to be running.

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": "check_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA page of this computer's own servers (http://localhost:5173/settings), or a path on the app Hillnote is running ("/settings"). Default: that app's address.
clickNoA CSS selector to click once the page has loaded (optional), e.g. "button[type=submit]"
widthNoWindow width in pixels (default 1280; 390 for a phone)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so thoroughly: it discloses the hidden-browser mechanism, that each check starts as a fresh visitor with no cookies or storage, that a screenshot is both returned as an image and saved as a PNG, and that the Hillnote app must be running. It also states the localhost restriction, which prevents an agent from passing arbitrary URLs.

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?

The purpose is front-loaded in the first clause and the following sentences add constraints rather than repeating. The prose is dense and clause-heavy, but each sentence contributes a distinct fact (reports, screenshot, localhost-only, url semantics, fresh session, prerequisite).

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?

There is no output schema, yet the description explains what comes back: console errors, warnings, uncaught exceptions, failed requests, and a screenshot image also saved as PNG. Combined with the stated prerequisites and URL rules, an agent has everything needed to invoke it correctly.

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 coverage is 100%, so the schema already documents url, click, and width, including defaults (1280 width, 390 for a phone) and the app-default URL. The description mostly restates the url defaulting rule and adds little syntax or behavioral meaning beyond the schema, so the baseline of 3 applies.

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 names a specific action (load a page in a hidden browser and report what happens) and enumerates exactly what is reported: console errors and warnings, uncaught exceptions, failed requests, plus a screenshot. No sibling tool performs page previews, so an agent can identify this tool's role from the first sentence alone.

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 states when to use it ("after a change to see whether the page works") and its constraints: localhost-only pages and a required running Hillnote app. It also explains the url defaulting behavior for the open project's app. No named alternative exists among siblings, so the absence of an explicit alternative pointer is not a real gap.

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