Skip to main content
Glama

Check Core Web Vitals

check_web_vitals
Read-onlyIdempotent

Retrieves real-user Core Web Vitals (LCP, INP, CLS, FCP, TTFB) from Chrome UX Report for a URL on phone and desktop, falling back to site data when page traffic is low.

Instructions

Get the Core Web Vitals of real Chrome users from the Chrome UX Report (CrUX). It gives LCP, INP, CLS, FCP and TTFB at the 75th percentile, for phone and desktop. When the page has too little traffic, it uses the data of the whole site. Needs a CrUX API key in EO_AUDIT_CRUX_API_KEY on the server machine; without it, it returns the setup steps. The result is reported, not scored: Core Web Vitals are a search ranking signal, but there is no evidence that they change AI citations.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe URL of the page to audit, for example https://example.com/blog/post. If the URL has no scheme, the server uses https:// (http:// for localhost).

Output Schema

NameRequiredDescriptionDefault
urlYes
noteNo
checkNoThe perf.cwv check (reported, not scored), or null when there is no data.
phoneNoThe CrUX result for one form factor.
setupNo
desktopNoThe CrUX result for one form factor.
configuredYesfalse: no CrUX API key is configured. Then `setup` has the steps.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: a CrUX API key must exist in EO_AUDIT_CRUX_API_KEY on the server machine, and without it the tool returns setup steps rather than failing silently. It also discloses the low-traffic fallback to site-level data and the percentile/device basis of the numbers, which materially affects interpretation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the core action and data source before auth and fallback details. Every sentence carries information; the closing caveat about AI citations is interpretive framing rather than strict call mechanics, but it prevents over-reading the metric.

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?

With an output schema present, return structure needn't be explained, and the description covers what an agent still needs: data provenance, metric set, percentile, device coverage, low-traffic fallback, and the API key prerequisite. Nothing required to call or interpret the result is missing.

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 100% and the single url parameter is already documented in the schema, including scheme inference and the localhost http:// exception. The description adds no further parameter-level meaning, so the baseline of 3 applies.

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 ("Get the Core Web Vitals") plus the exact data source (Chrome UX Report / CrUX) and the metrics returned (LCP, INP, CLS, FCP, TTFB). This clearly separates it from sibling checks like check_page or check_structured_data, which inspect page markup rather than field performance data.

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?

The description frames the use case well: field data from real Chrome users at the 75th percentile, for phone and desktop, plus the caveat that results are reported rather than scored and do not affect AI citations. It does not explicitly name an alternative tool or state when-not to call it, so it stops short of full routing guidance.

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