Skip to main content
Glama
PageSpeed MCP Server

PageSpeed MCP Server

run_pagespeed_test

Run a PageSpeed Insights test on any URL to get category scores, Core Web Vitals, real-user field data, top savings opportunities, and failing audits for clearer performance and SEO checks.

Instructions

Run a PageSpeed Insights test on a URL. Returns a compact summary: category scores, lab Core Web Vitals, real-user field data (page and origin), top opportunities with savings, and failing audits per category.

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": "run_pagespeed_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
apiKeyNo
localeNoen
categoryNo
strategyNomobile

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does well on output disclosure (category scores, lab vs. field data, opportunities, failing audits), but says nothing about the external API dependency, quota/rate limits, latency, or that an apiKey may be required for full results.

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?

Two tight sentences with the action front-loaded and the return payload enumerated compactly. No filler or redundancy.

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?

The description compensates for the missing output schema by summarizing return contents, which is valuable. However, for a 5-parameter tool with zero schema descriptions and no annotations, the absence of parameter-level and operational guidance leaves real gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, and the description only addresses url and, implicitly, category. It never explains strategy (mobile vs. desktop, which materially changes results), locale, or apiKey, leaving these opaque to the agent.

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?

States a specific verb and resource (run a PageSpeed Insights test on a URL) plus the scope of the result. It does not differentiate from plausible siblings such as performance_audit or mobile_audit, so an agent cannot tell from the description alone which of those to prefer.

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/when-not-to-use guidance and no mention of alternatives. The only implicit cue is "on a URL," but nothing says whether this supersedes the other audit tools or when a lighter local audit is preferable.

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