Skip to main content
Glama
Core Web Vitals MCP Server

Core Web Vitals MCP Server

by surendranb

get_crux_history

Retrieve 28-day historical field metric trends from the Chrome UX Report API for LCP, INP, CLS, FCP, and TTFB, filtered by URL or origin and optional device type.

Instructions

Query Google Chrome UX Report History API for 28-day historical field metric trends.

Provides timeseries percentiles for LCP, INP, CLS, FCP, and TTFB across 25+ weekly collection periods.

Args: url_or_origin: Web page URL or origin domain (e.g. 'https://surendranb.com'). form_factor: Optional device filter ('ALL_FORM_FACTORS', 'PHONE', 'DESKTOP', 'TABLET'). api_key: Optional Google API Key. If omitted, checks GOOGLE_API_KEY or CRUX_API_KEY environment variables.

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_or_origin": "<url_or_origin>"
    },
    "name": "get_crux_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
form_factorNo
url_or_originYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.4
    • addedInput schema / properties / form_factor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Form Factor"
      +}
  2. First observedv0.1.0

TDQS

A3.6/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; it usefully discloses the 28-day window, 25+ weekly collection periods, the five metrics covered, and the API-key fallback to GOOGLE_API_KEY/CRUX_API_KEY environment variables. It omits notable operational behavior such as what happens for low-traffic URLs with insufficient data, rate limits, or error modes, which matters for an unannotated network-bound tool.

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?

The key framing (API, 28-day history, metric list) is front-loaded in two sentences before the parameter block, so an agent gets the essentials immediately. The Args section mildly restates parameter names already visible in the schema, and the CLS metric's unitless nature is not flagged, but overall there is little wasted text.

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?

An output schema exists, so return-value structure need not be described, and the description still covers the metric set and the number of collection periods an agent should expect. For a three-parameter read query this is nearly complete; the only meaningful gap is guidance on partial or missing data for low-traffic targets.

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 description coverage is 0%, so the description must compensate, and it does: it explains that url_or_origin accepts either a full page URL or an origin domain with a concrete example, and it supplies the permitted form_factor values ('ALL_FORM_FACTORS', 'PHONE', 'DESKTOP', 'TABLET') that the schema itself does not encode as an enum. The api_key fallback chain is also documented, adding real meaning beyond the bare nullable string properties.

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?

The description opens with a specific verb and resource ("Query Google Chrome UX Report History API") and narrows the scope to 28-day historical field metric trends, so the agent knows exactly what data comes back. It implicitly contrasts with a current-snapshot tool but never names the sibling get_crux_metrics, leaving differentiation to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the word "History" and "28-day historical field metric trends" — an agent can reason this is for trend analysis rather than a point-in-time lookup. However, there is no explicit when-to-use/when-not statement and no named alternative, so the selection logic against get_crux_metrics must be guessed.

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