Skip to main content
Glama

Measure how fast a page loads

measure_speed
Read-onlyIdempotent

Measures a page's load speed on a slow 4G phone or desktop, then reports paint timing, layout shift, blocking files, and what to fix first.

Instructions

Loads one page three times from an empty cache in the Chrome or Edge on this computer, as a mid-range phone on slow 4G (Lighthouse's slow 4G as DevTools applies it: 562.5 ms per request, 1,475 Kbps down, the processor 4× slower), or as a desktop. Reports the middle run: first paint, largest paint and which element it is (with its timeline), layout shift and what moved, blocking time from long tasks, weight by kind, files that block the first paint, pictures far larger than drawn, text sent uncompressed. Then what to fix first, and a PageSpeed Insights link for real visitors' numbers. Takes about half a minute on a phone setting.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to measure, 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 (slow 4G, 4× slower processor) or desktop (no throttling)phone
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

A4.4/5.0
Behavior5/5

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

Annotations only declare read-only, open-world, idempotent, non-destructive, but the description adds substantial behavior: three runs from an empty cache, the middle run reported, throttling specifics, remote network access, a ~30s runtime, and the 15-minute result caching. It also discloses that ignoring robots.txt adds a notice at the top of the report, which the annotations do not cover.

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 and method are front-loaded, and the long metric enumeration maps to real report contents rather than filler. The middle sentence is a dense run-on of report items, but only marginally more verbose than needed.

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?

For a 5-parameter, network-facing measurement tool with an output schema, the description covers setup, throttling, runtime, caching, robots.txt handling, and remediation output. Nothing an agent needs in order to call it correctly or set expectations is missing.

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 every parameter is already documented in the schema, including the phone/desktop enum and the robots.txt caveat. The description reinforces the device setting and the caching semantics of `kind` but adds no syntax or format detail beyond what the schema states, which matches the baseline-3 case.

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 precise verb and resource: it loads one page three times from an empty cache and reports performance metrics. An agent can distinguish it from the check_* siblings (accessibility, phone fit, sitemaps) purely from this text because performance timing is stated explicitly, not inferred.

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 gives clear operating context — Chrome/Edge on this machine, ~30 seconds on the phone setting, and the `kind` reuse rule ('for 15 minutes the same arguments re-read that check instead of checking again'). It also conditions `ignore_robots_txt` on the user asserting site ownership. There is no explicit statement of when to prefer a sibling such as check_page instead, so it stops short of a 5.

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