Skip to main content
Glama
PageSpeed Insights MCP Server

PageSpeed Insights MCP Server

Get Chrome UX Report Field Data

pagespeed_get_field_data
Read-onlyIdempotent

Fetches real-user Core Web Vitals from Chrome UX Report—not lab data—for a page or origin, with optional multi-week history to diagnose performance trends.

Instructions

Get real-user Core Web Vitals from Chrome UX Report, not Lighthouse lab measurements. Use scope=page for one URL; use scope=origin with a bare origin when the page has insufficient traffic. Set includeHistory=true to inspect multi-week historical trends. Returns p75 field metrics, distribution histograms, or a clear no-data result.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic or local http(s) URL, for example https://example.com/products or http://localhost:3000.
scopeNopage queries one URL; origin aggregates every page on the origin.page
formFactorNoCrUX device segment. ALL is valid only for scope=origin.PHONE
includeHistoryNoFetch multi-week historical CrUX timeseries to spot when regressions began.
responseFormatNomarkdown is concise and readable; json is machine-readable and is also available as structuredContent.markdown

Output Schema

NameRequiredDescriptionDefault
toolYes
resultYes
truncatedNo
truncationMessageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.5.0
    • addedInput schema / properties / includeHistory
      Added value: +{
      +  "default": false,
      +  "description": "Fetch multi-week historical CrUX timeseries to spot when regressions began.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) URL, for example https://example.com/products."New value: +"Public or local http(s) URL, for example https://example.com/products or http://localhost:3000."
  2. Addedv2.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's added value is behavioral: it discloses the no-data outcome and the insufficient-traffic fallback, which is real operational context. It stops short of quota/API-key requirements or latency expectations, and its return-shape sentence partly duplicates the existing output schema.

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?

Four short sentences, front-loaded with the core distinction, then parameter guidance, then return behavior. Every sentence carries actionable content, with no restatement of the name or title.

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?

An output schema exists, so return details are optional, yet the description still summarizes the p75/histogram/no-data outcomes. Combined with the traffic fallback and history guidance, an agent has everything needed to call this correctly on the first attempt.

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 3 would be the baseline, but the description adds decision semantics the schema does not: the page-vs-origin tradeoff tied to traffic volume and the purpose of includeHistory for spotting regressions. It does not explain formFactor's ALL-only-for-origin restriction, leaving that to the schema.

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 and resource — real-user Core Web Vitals from the Chrome UX Report — and explicitly contrasts it with Lighthouse lab measurements, which is exactly the distinction an agent needs against siblings like pagespeed_analyze_page. The tool's role is unambiguous 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 Guidelines4/5

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

Gives concrete conditional guidance: scope=page for one URL, scope=origin with a bare origin when the page has insufficient traffic, includeHistory=true for trend inspection. It implicitly routes lab-measurement questions to the sibling analyze tools by naming Lighthouse, but never names an alternative tool or an explicit when-not-to-use case.

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