Skip to main content
Glama

PageSpeed Insights

pagespeed
Read-onlyIdempotent

Run Lighthouse audits for a URL to return performance and SEO scores, Core Web Vitals field data, lab metrics, and top savings opportunities.

Instructions

Run Google PageSpeed Insights (Lighthouse) for a URL.

Returns the performance and SEO scores, Core Web Vitals field data (LCP, INP, CLS, plus FCP/TTFB) from the Chrome UX Report when Google has enough traffic data, lab metrics and the top opportunities by estimated savings. Uses the public API; set PAGESPEED_API_KEY for a higher quota. Quota errors are returned with a hint instead of failing. A run can take up to a minute.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL, e.g. https://example.com/page
strategyNoDevice strategy.mobile

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, yet the description still adds real operational context: it uses the public API, PAGESPEED_API_KEY raises the quota, quota errors come back with a hint rather than failing, and a run can take up to a minute. It also warns that Chrome UX Report field data appears only when Google has enough traffic — a material caveat an agent cannot get from the schema. It stops short of describing pagination or exact response shape, but the output schema covers that.

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?

Six short lines, front-loaded with the action and then the payload, followed by the practical constraints (quota, API key, latency). No filler or restatement of the title; every sentence carries information the agent would otherwise have to discover by trial.

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 two-parameter read-only audit tool with a full output schema and strong annotations, the description covers what remains: runtime (up to a minute), quota/auth path via PAGESPEED_API_KEY, graceful quota-error behavior, and the conditional nature of field data. Nothing an agent needs in order to call it correctly 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% for both parameters, with url documented as an absolute http(s) URL and strategy as a mobile/desktop enum defaulting to mobile. The description adds nothing about parameters beyond the word 'URL' — notably it never mentions that a mobile/desktop strategy choice exists or what it changes, so 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?

States a specific verb and resource ('Run Google PageSpeed Insights (Lighthouse) for a URL') and immediately enumerates what the run produces: performance/SEO scores, Core Web Vitals, lab metrics, opportunities. It is clearly distinct from siblings like crawl_site or validate_schema, though it never names an alternative 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?

Usage is implied by the content — a single-URL performance/SEO audit — but there is no explicit statement of when to prefer this over audit_page or the other check_* tools, nor any exclusion such as 'do not use for full-site scans'. Adequate but leaves routing to inference.

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