Skip to main content
Glama

Check what breaks while a page loads

check_page_errors
Read-onlyIdempotent

Loads a page in Chrome or Edge as a phone by default, scrolls it, and reports what breaks: JavaScript errors, failed requests, insecure content, and third-party calls with request counts and bytes.

Instructions

Loads one page in the Chrome or Edge on this computer (as a phone by default), scrolls through it, and reports what breaks: uncaught JavaScript errors, console errors, requests that fail (a missing script, font or picture) or answer an error status, insecure http:// content on an https page, and the other sites the page calls, with how many requests and how many bytes each.

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": {
      "url": "<url>"
    },
    "name": "check_page_errors"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to check, for example https://example.com
kindNoShow only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again.
deviceNophone
delay_msNoPause between two requests to the site, in milliseconds (one request at a time).
ignore_robots_txtNoRead pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored.

Output Schema

NameRequiredDescriptionDefault
toolYes
factsYes
notesYes
passedYes
targetYes
readingYesHow to read this answer: the same lines end the text form
findingsYes
headlineYes
checked_atYes
robots_txtYes"ignored" only when the caller passed ignore_robots_txt
from_earlier_checkYesTrue when this answer re-reads an earlier check (because `kind` was given)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent and non-destructive, so the safety profile is covered. The description adds real context beyond that: the browser runs locally on this machine, pages are emulated as a phone by default, the page is scrolled, and the report labels itself when robots.txt was ignored. It omits how long a check takes, whether a browser must be installed, and whether results are cached beyond the 15-minute note carried in the kind parameter.

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?

Everything sits in one long but well-ordered sentence that front-loads the action ('Loads one page in the Chrome or Edge on this computer'), then the mechanism, then the reported failures. No filler, though breaking the failure list into a second sentence would improve scannability.

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?

An output schema exists, yet the description still summarizes the report's contents accurately, and the operational essentials — which browser, default emulation, scrolling, robots.txt handling — are all present. For a five-parameter read-only check tool, an agent has what it needs to call this 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?

With schema coverage around 80%, the schema already documents url, kind, device, delay_ms and ignore_robots_txt, including the reuse window and the policy caveat. The description only echoes the phone default ('as a phone by default') and otherwise adds no meaning beyond the schema, so the baseline 3 applies.

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?

The description states a specific verb and resource — it loads a single page in local Chrome or Edge, scrolls it, and reports a precisely enumerated set of failures (uncaught JS errors, console errors, failed requests, error statuses, mixed content, third-party calls with request/byte counts). That is far more specific than a name restatement. It never names a sibling such as check_page or check_site to draw the boundary, so it stops short of 5.

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?

Usage is implied by the enumerated outputs rather than stated: an agent can infer 'use this to diagnose a page's runtime failures.' There is useful conditional guidance, but it lives in the schema for ignore_robots_txt rather than the description, and nothing says when to prefer check_page, check_site, or measure_speed instead.

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