Skip to main content
Glama
google-seo-mcp
by Akxan

PageSpeed Insights / Core Web Vitals

pagespeed
Read-onlyIdempotent

Run Google PageSpeed Insights on a URL to get Lighthouse scores, lab metrics, CrUX field data, failed audits, and top savings opportunities for diagnosing and fixing page speed and SEO issues.

Instructions

Run Google PageSpeed Insights for a URL. Returns Lighthouse category scores (performance, SEO, accessibility, best practices), lab metrics (LCP, CLS, TBT, FCP, Speed Index), real-user CrUX data for the page and for the whole origin (LCP, INP, CLS, FCP, TTFB), so low-traffic pages still get field numbers, the failed audits of every requested category, and the top opportunities with estimated savings. Takes 15-60 s; set PAGESPEED_API_KEY for a higher quota.

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
urlYes
localeNoLanguage of the audit titles and descriptions, e.g. 'es', 'en', 'pt-BR'. Default 'en'.
strategyNomobile
categoriesNo
maxFailedAuditsNoFailed audits to list per category.
topOpportunitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Language of the audit titles and descriptions, e.g. 'es', 'en', 'pt-BR'. Default 'en'.",
      +  "type": "string"
      +}
    • addedInput schema / properties / maxFailedAudits
      Added value: +{
      +  "default": 15,
      +  "description": "Failed audits to list per category.",
      +  "maximum": 50,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Changed1 schema field changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
  4. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so safety is covered. The description still earns credit for behavioral facts annotations cannot express: a 15-60 s runtime, an API-key/quota requirement, and the origin-level CrUX fallback that yields field numbers even for low-traffic pages. It does not mention rate-limit errors or failure modes, which keeps it from a 5.

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?

Two sentences, front-loaded with the action and immediately followed by what comes back, which is the right order for an agent deciding whether to call it. The long parenthetical metric lists are dense but each item is informative. Minor cost: the return-value enumeration is packed into one run-on clause that is harder to scan than a short list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, no output schema, and low schema coverage, the description carries the return-value burden and does so thoroughly, which matters because there is no output schema to inspect. Latency and quota caveats are covered. The gap is selection guidance: nothing tells an agent how strategy or category choice should be made relative to a lighter-weight sibling.

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 only 33%, so the schema is not carrying the load. The description partially compensates by explaining that failed audits are listed per requested category and capped, which maps to categories, maxFailedAudits, and topOpportunities. It says nothing about strategy (mobile/desktop/both) or locale, the two parameters whose effect on results is least obvious from the schema.

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?

Opens with a specific verb and resource ("Run Google PageSpeed Insights for a URL") and then enumerates the concrete output families: Lighthouse category scores, lab metrics, CrUX field data at page and origin level, failed audits, and opportunities. It is not a tautology of the title. It stops short of naming a sibling it is not (e.g. crux_snapshot for field-data-only, page_audit for on-page analysis), so differentiation is inferred rather than stated.

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?

The description implies the use case (auditing a single URL's performance/SEO/CWV profile) and notes the practical prerequisite of PAGESPEED_API_KEY for quota. However, there is no explicit when-to-use versus when-not, and no routing to alternatives like crux_snapshot or crux_history that overlap on CrUX field data. The agent must infer the choice from the sibling names alone.

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