Skip to main content
Glama

Check real-user Core Web Vitals (CrUX)

check_vitals

Fetches real-user Core Web Vitals from Google's Chrome UX Report API—75th-percentile LCP, CLS, and INP with threshold verdicts—for an origin or specific page over 28 days.

Instructions

Query Google's Chrome UX Report API for the Core Web Vitals real Chrome users experienced over the last 28 days: LCP, CLS and INP (plus FCP and TTFB when reported), each as its 75th-percentile value with a good / needs improvement / poor verdict against Google's official thresholds. A bare origin is queried as the site-wide aggregate; a URL with a path or query as that page only. Requires a free API key in the CRUX_API_KEY environment variable; every other tool works without it.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
formFactorNoPHONE by default — Google indexes mobile-firstPHONE

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4/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 burden and does well on scope: the 28-day window, the metric set, the 75th-percentile framing, the good/needs-improvement/poor thresholds, and the API key requirement are all disclosed. It omits behavior that matters for a CrUX tool — notably what happens when a low-traffic origin or URL has no reported data, and any rate limiting or quota behavior from the API.

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, each doing distinct work: what is returned, how the input is interpreted, and what prerequisite exists. The most important facts (metrics and scope) are front-loaded, with no filler or restatement of the title.

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, so the description must describe return values, and it does so precisely (per-metric 75th percentile plus a threshold verdict). For a two-parameter read tool this is nearly complete; the remaining gap is failure-mode behavior when CrUX has insufficient data for the requested scope.

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 coverage is 50%: formFactor already carries an enum and default explanation in the schema, while url is undocumented there. The description compensates by defining how url is interpreted (origin vs. path/query scope), which is meaningful added semantics. It says nothing about formFactor beyond what the schema states, so it sits modestly above the baseline rather than well above it.

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 gives a specific verb and resource ("Query Google's Chrome UX Report API") and enumerates exactly what comes back (LCP, CLS, INP, plus FCP and TTFB) as 75th-percentile values with verdicts. This is field/real-user data, which clearly separates it from siblings like audit_page (lab) or crawl_site, without needing to name them.

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?

It states the key selecting condition — a bare origin yields site-wide aggregates while a URL with a path or query yields that page only — and flags the CRUX_API_KEY prerequisite, noting other tools work without it. It stops short of naming an alternative for lab-vs-field comparisons or saying when this tool is the wrong choice.

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