Skip to main content
Glama

PageSpeed Insights

pagespeed_insights
Read-onlyIdempotent

Run Google's real PageSpeed Insights (Lighthouse + Chrome UX Report) against a URL: performance score, Core Web Vitals (LCP, CLS, INP/TBT), and real-user field data where available. The authoritative, Google-measured score — for a quick raw TTFB/size timing check from this server use page_performance_check instead. Works without an API key at low volume; set GOOGLE_PAGESPEED_API_KEY server-side for higher throughput.

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 URL to test
strategyNoDevice strategy (default mobile)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the safety profile is covered; the description adds genuinely new context about API-key throttling and the two data sources (lab Lighthouse plus CrUX field data "where available"). It stops short of warning that calls are slow and network-bound, which matters for an external-API 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?

Three sentences, front-loaded with what it returns, then the sibling disambiguation, then the throughput caveat. Every sentence carries distinct information with no repetition of the title or schema.

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?

No output schema exists, and the description compensates by naming the exact fields returned (score, LCP, CLS, INP/TBT, field data). What remains unstated is expected latency/timeout behavior and what happens when field data is unavailable, which would matter for a slow external call.

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?

With 100% schema description coverage and only two parameters, including an enum for strategy, the schema does the heavy lifting and the baseline is 3. The description adds no syntax or default guidance beyond what the schema already states, and never mentions the mobile/desktop strategy choice.

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 ("Run") and resource ("Google's real PageSpeed Insights (Lighthouse + Chrome UX Report) against a URL") and enumerates concrete outputs: performance score, Core Web Vitals (LCP, CLS, INP/TBT), and field data. It also explicitly distinguishes itself from the sibling page_performance_check, so an agent can pick between them without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: use this for the authoritative Google-measured score, and use page_performance_check instead for a quick raw TTFB/size timing check. It also states the operational prerequisite for higher throughput (set GOOGLE_PAGESPEED_API_KEY server-side) and that low-volume use works without a key.

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.