Skip to main content
Glama

pagespeed_analyze

Analyze a public URL to retrieve PageSpeed Insights Lighthouse scores and optional CrUX field data for mobile or desktop, helping diagnose page performance issues.

Instructions

Analyze a public URL with PageSpeed Insights Lighthouse scores and optional standalone CrUX field data.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic page URL to analyze
strategyNoLighthouse emulation strategymobile
include_cruxNoAlso query CrUX field data when an API key is configured
crux_origin_fallbackNoIf exact URL field data is unavailable, query its origin

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose that the target must be a public URL and that CrUX data is 'optional' and 'standalone' (i.e., a separate data source from the Lighthouse lab run), which is meaningful context. However, it omits latency expectations, quota/API-key requirements for CrUX, and what happens on failure for inaccessible URLs, leaving notable gaps for an unannotated tool.

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?

A single sentence with no filler, front-loading the verb, the resource, and the two output data sources. Every phrase ('public', 'Lighthouse scores', 'standalone CrUX field data') contributes distinct information.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the input schema fully documents parameters. What is missing is operational context an unannotated tool should supply: whether the call is synchronous and slow, whether CrUX requires a configured API key (only implied via schema), and how private/unreachable URLs are handled. Adequate but with clear gaps.

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 all four parameters (url, strategy, include_crux, crux_origin_fallback) are already documented in the schema, including the enum and defaults. The description reinforces the include_crux concept via 'optional standalone CrUX field data' but adds no format, syntax, or edge-case detail beyond the schema. Baseline 3 is appropriate.

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?

The description names a specific verb ('Analyze') and resource (a public URL) and states what comes back: PageSpeed Insights Lighthouse scores plus optional CrUX field data. It does not differentiate from the adjacent gsc_inspect_url sibling, but the scope (performance/Lighthouse + field data) is concrete enough that an agent can grasp the tool's function without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisite statement, and no comparison to alternatives such as gsc_inspect_url. The only usage signal is the adjective 'public', which implicitly excludes authenticated or private pages but is never stated as a constraint. The agent must infer the appropriate context for calling this tool.

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

Deploy Server

Other Tools