Skip to main content
Glama
Considus

pagespeed-insights-mcp

Measure page speed

check_pagespeed
Read-only

Measure web page performance with Google PageSpeed Insights and get a reliable median score by running several distinct analyses, including the min-max spread to show uncertainty. Avoid quoting noisy single-run results.

Instructions

Measure a page with Google PageSpeed Insights and report the MEDIAN of several DISTINCT analyses with the min-max spread, so the number comes with its uncertainty. A single Lighthouse run is noise, Total Blocking Time swings threefold between runs on an unchanged page, so do not set runs=1 to make it fast and then quote the score. Google re-analyses a URL only about once a minute and replays the cached result in between, so this keeps asking until it has genuinely different analyses rather than the same one several times. That means runs=5 takes roughly 150 seconds and asking harder will NOT speed it up. Reports fewer analyses honestly if time runs out. Anything that will not fit inside one tool call returns a JOB ID instead and keeps working: collect it with check_status, polling about every 15 seconds. Only runs=1 on a single URL answers immediately, and runs=1 is the noisy single run you should not be quoting. Returns a report and the same figures as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runsNoDISTINCT analyses to collect and median over. Default 5, which takes ~150s.
urlsNoAbsolute http(s) URLs. Defaults to saved URLs.
strategyNoDefault mobile, which Google ranks on.
Behavior5/5

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

The description goes well beyond the readOnlyHint annotation by disclosing rate limiting, repeated polling, min-max spread, job ID behavior, timing, and honest degradation if time runs out. This rich operational detail is exactly the kind of context that helps an agent behave correctly.

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?

Although the description is long, every sentence conveys a decision-relevant fact: noise, rate limits, timing, job handling, and immediate-answer conditions. The main uncertainty point is front-loaded, and the structure builds logically from behavior to usage constraints.

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?

Given no output schema, the description still mentions it returns a report and JSON figures. It covers latency, polling, job IDs, parameter behavior, and edge cases like time running out. An agent has enough context to call the tool and interpret results safely.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful behavioral semantics for the parameters: runs=1 is noisy, runs=5 takes ~150 seconds, and strategy defaults to mobile because Google ranks on it. This goes beyond what the schema alone states.

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?

The description clearly identifies the tool as measuring a page with Google PageSpeed Insights and reporting the median of distinct analyses with min-max spread. This specific verb-resource pair distinguishes it from the sibling tools by emphasizing the repeated-analysis uncertainty behavior.

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?

It explicitly warns against using runs=1 and quoting the noisy score, notes that `check_status` should be used to collect jobs, and explains when immediate answers are possible. This gives clear when-to-use and when-not-to-use guidance beyond a generic description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Considus/pagespeed-insights-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server