Skip to main content
Glama

Pagespeed Audit

pagespeed_audit
Read-onlyIdempotent

Run Google's PageSpeed Insights (Lighthouse) against any public URL and get back the performance, accessibility, best-practices and SEO scores, the lab timing metrics behind them, and the RANKED list of specific fixes with the milliseconds or bytes each one would save — render-blocking resources, unused JavaScript and CSS, unoptimised images, missing text compression. AUTHORITATIVE for "why is this page slow and what do I fix first": this is Google's own analyser running the page on Google's infrastructure, which is what no amount of reading a site's HTML can substitute for. Works on any public site, including a competitor's. A call takes 10-40 seconds because the page is genuinely loaded.

Input Schema

NameRequiredDescriptionDefault
urlYesFull page URL to analyse, including the scheme, e.g. https://www.example.com/pricing.
localeNoBCP-47 locale for the audit titles, e.g. en, fr, ja. Defaults to English.
strategyNoDevice to emulate: mobile (the default, and what Google indexes with) or desktop.
categoriesNoWhich Lighthouse categories to run. Defaults to performance only, which is much faster. Options: performance, accessibility, best-practices, seo.
max_opportunitiesNoHow many ranked improvement opportunities to return (default 10, max 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/openWorld/idempotent, so the description's job is to add operation-specific context — and it does: it discloses the 10-40 second runtime, that the page is genuinely loaded on Google's infrastructure, and that it works on any public site. These are the exact facts an agent needs to set timeouts and expectations, none of which appear in the annotations.

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?

Front-loaded with the core verb/resource in the first clause, then outputs, then the authoritative claim. Every sentence earns its place except the slightly editorial 'which is what no amount of reading a site's HTML can substitute for,' which is persuasive but adds length without new call-time information.

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 single-call audit tool with 100% schema coverage and rich annotations, the description covers purpose, output shape, runtime, and the key default that affects speed. There is no output schema, yet the description already summarizes the returns (scores, lab metrics, ranked fixes with savings), leaving nothing an agent needs missing.

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?

Schema description coverage is 100%, so the schema already documents all five parameters with defaults and enum values. The description adds the important default-cost note that 'performance only' is the default and 'much faster,' which helps the agent reason about strategy/categories tradeoffs beyond the schema's plain default statement.

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 states a specific verb and resource ('Run Google's PageSpeed Insights (Lighthouse) against any public URL') and enumerates exactly what comes back — scores, lab metrics, and ranked fixes. It distinguishes itself from the sibling pagespeed_field_metrics by explicitly claiming AUTHORITATIVE status for diagnosing lab-side slowness, making the distinction clear.

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 a clear when-to-use: 'why is this page slow and what do I fix first,' and adds 'including a competitor's.' However, it never names the sibling pagespeed_field_metrics or explains when field data is preferred over lab data — which is the natural alternative for this tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.