Skip to main content
Glama

GSCPAP - Google Search Console, GA4, Bing Webmaster Tools & PageSpeed MCP

PageSpeed Insights audit

pagespeed_insights
Read-only

Run a Google PageSpeed Insights (Lighthouse) audit on a public URL.

Returns Lighthouse lab data: performance / accessibility / best-practices / SEO scores (0-100), Core Web Vitals lab values (LCP, FCP, CLS, TBT, TTFB, Speed Index), and the top 8 optimization opportunities ranked by potential savings in milliseconds.

Results are cached server-side for 24 hours per (url, strategy) so repeat calls are free + instant. Companion tool pagespeed_field_data returns real-user CrUX data from the same underlying call.

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_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe fully qualified public URL to audit (must be reachable from Google's servers - localhost / staging URLs won't work).
intentNoOptional: the user's goal in a few words. No site names or URLs.
strategyNo"mobile" (default) or "desktop". Mobile uses a slow 4G throttled run with a Moto G4-class CPU; desktop uses an unthrottled high-end profile.mobile

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional: the user's goal in a few words. No site names or URLs.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds real behavioral value on top: 24-hour server-side caching keyed on (url, strategy) so repeats are free and instant, and the ranking of the top 8 opportunities by potential millisecond savings. These are non-obvious traits an agent needs to reason about cost and freshness.

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 action and return contents, then caching, then the sibling pointer — a sensible order with no filler. Minor redundancy: the strategy/throttling detail appears in both the description-adjacent prose and the schema, which is the only thing keeping it from a 5.

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-audit tool with an output schema and rich annotations, the definition covers what the agent still needs: return categories, caching behavior, URL eligibility, and how it relates to the field-data sibling. Nothing required 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%, and the schema itself already documents the url reachability constraint and the mobile/desktop throttling profiles, so the description adds little beyond it. The optional `intent` parameter is never mentioned in the description. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

States a specific verb and resource (run a Google PageSpeed Insights / Lighthouse audit on a public URL) and enumerates the exact output categories (performance/accessibility/best-practices/SEO scores, Core Web Vitals, top 8 opportunities). It also names the sibling `pagespeed_field_data` and contrasts lab vs field data, so the agent can tell the two apart without opening schemas.

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 clear usage context: public, Google-reachable URLs only (localhost/staging excluded) and a companion tool for real-user CrUX data. It does not use explicit 'use this instead of X when...' phrasing, but the lab-vs-field split effectively routes the agent. No exclusions beyond the URL reachability constraint.

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.