Skip to main content
Glama

Check the environment and the production guard

visual_doctor

Verifies browser, config, target URL, and suppression store, and scans build output for leftover data-visual attributes to confirm the strip plugin ran before shipping.

Instructions

Verifies the browser, the config, the target URL, the suppression store, and — when you pass artifactsDir — scans a build output for leftover data-visual-ok / data-visual-expect attributes. Use artifactsDir:'dist' before shipping to prove the strip plugin actually ran.

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

Input Schema

NameRequiredDescriptionDefault
urlNoURL to probe for reachability. Defaults to config.baseUrl.
artifactsDirNoBuild output directory to scan for leftover attributes (e.g. dist, out, build).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.3

TDQS

A3.6/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 disclose non-obvious behavior: the tool probes a URL for reachability and scans build output for specific leftover attributes (data-visual-ok / data-visual-expect). What's missing is failure behavior, whether it reports versus throws, and permission/auth needs. Partial disclosure is still notable for a zero-annotation tool.

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?

Two sentences, front-loaded with the verification scope, then the conditional artifactsDir behavior and a concrete example value. No filler, though the mid-sentence enumeration of five verified artifacts is somewhat list-like and could be tightened.

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?

The description covers what is checked and when to pass artifactsDir, which is adequate for a two-parameter tool. With no output schema and no annotations, it never says what the verification produces — a report, a thrown error, or a pass/fail signal — leaving a real gap for an agent deciding whether to rely on the result.

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 both parameters are already documented, and the URL default-to-config.baseUrl behavior is only restated. The description does add real meaning by naming the specific attributes the artifactsDir scan looks for, but that is a modest increment over the schema's "scan for leftover attributes."

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?

Uses a specific verb ("Verifies") and enumerates the concrete resources checked: browser, config, target URL, suppression store, and build output. This is more specific than a generic "check" and clearly differs from sibling tools that apply, audit, or compare, though it doesn't name a sibling to contrast against.

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

Usage Guidelines3/5

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

Gives one explicit usage trigger — run with artifactsDir:'dist' before shipping to prove the strip plugin ran — which is genuinely actionable. However, it offers no guidance on when to use this tool instead of visual_audit or visual_inspect, and no guidance on when the plain no-argument mode is preferred over the artifactsDir mode.

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