Skip to main content
Glama

browser_diagnose

Run a page health check on the active page to surface load timings, console errors, broken images, meta tags, interaction counts, and a 0–100 heuristic score.

Instructions

Page health check for the active page: load timings, console errors, broken images, meta tags, interaction counts, and a heuristic score (0-100, weighted penalty sum — not a Lighthouse audit). Safe to call while browser_watch is recording.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the observational/non-mutating nature via the concurrency-safety note, and it clarifies the semantics of the scoring output (weighted penalty sum, explicitly not a Lighthouse audit). Gaps remain around cost/latency of the check and behavior on pages that are still loading or blank, which matter for a diagnostic that touches many page facets.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the core purpose before the enumerated signals, with one parenthetical that earns its place by preventing a scoring misinterpretation. No filler, no restatement of the tool name.

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?

There is no output schema, so the description must convey what comes back; it does so by listing the six reported signal categories and the score's range and meaning. That covers an agent's decision needs, though it omits practical detail such as whether the call is expensive or what it returns for pages without a document.

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?

The tool takes zero parameters, so there is no parameter meaning for the description to add. Baseline 4 applies; the description correctly defines implicit scope as the active page rather than any arbitrary tab or URL, which is the only scope decision the caller faces.

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?

Names a specific verb+resource (page health check) scoped to the active page, then enumerates exactly what it reports: load timings, console errors, broken images, meta tags, interaction counts, and a heuristic 0-100 score. It also pre-empts a likely misread by stating the score is a weighted penalty sum and 'not a Lighthouse audit', which distinguishes it from aggregate audit siblings.

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?

Gives a clear usage context by stating it is safe to call while browser_watch is recording, implying a non-mutating observational tool that can run alongside an active watch session. It stops short of explicitly routing away from overlapping siblings like browser_console or browser_network, which report single signals rather than an aggregated health summary.

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