Skip to main content
Glama

pg_probe_ui

Verify frontend HTML/JS assets, capture headless Chromium viewport screenshots, and inspect post-JS DOM/console output to confirm pages render correctly.

Instructions

Two-stage frontend verifier: static HTML/JS asset check + Headless Chromium viewport PNG screenshot & post-JS DOM/console capture.

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

Input Schema

NameRequiredDescriptionDefault
slotNoWorkspace slot name (optional if only one slot is open or `--slot` default is set).
widthNoViewport width in px (default: 1280).
heightNoViewport height in px (default: 800).
sub_idNoOptional sub-worktree ID.
targetNoRelative HTML file path or http://localhost:PORT URL.
wait_msNoVirtual time budget in ms (default: 1800).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior: two distinct stages, headless Chromium, a PNG viewport screenshot, post-JS DOM and console capture, and (via the schema) a virtual time budget. It omits side effects, whether a server must already be running, error/timeout behavior, and whether anything is written to disk or workspace.

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?

A single front-loaded sentence with no filler, beginning with the core role and then enumerating the two stages. Compressed '&' and 'static HTML/JS asset check + ...' notation costs a little readability, keeping it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, no-required, no-annotation, no-output-schema tool, the description covers the mechanism and the kinds of artifacts returned (screenshot, DOM, console), which is the most important gap filled. It still leaves ambiguous when to pick it over sibling browser/verify tools and what preconditions must hold.

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 the schema already documents every parameter, and the baseline is 3. The description adds only indirect hints (viewport screenshot implies width/height, post-JS capture implies wait_ms) and no new syntax or format detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: a 'two-stage frontend verifier' that does a static HTML/JS asset check plus a headless Chromium screenshot and post-JS DOM/console capture. An agent can tell it is a rendering/asset verification tool. It does not name or distinguish itself from plausible siblings like pg_browser or pg_verify, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description describes what the tool does but gives no when-to-use or when-not-to-use guidance, no mention of alternatives such as pg_browser for interactive browsing or pg_verify for general verification. An agent must infer the use case entirely from the two-stage mechanics.

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