Skip to main content
Glama

check_core_web_vitals

Read-only

Measure Core Web Vitals and Lighthouse scores for a URL via Google PageSpeed Insights. Get LCP, INP, CLS, FCP, and TTFB ratings plus performance and SEO diagnostics.

Instructions

Measure Core Web Vitals and Lighthouse scores for a URL using the Google PageSpeed Insights API. Returns LCP, INP, CLS, FCP, and TTFB with ratings, Lighthouse category scores (performance, SEO, accessibility, best-practices), field data when available, performance opportunities, diagnostics, and a resource size summary. Works without an API key (rate-limited) or with a PAGESPEED_API_KEY for higher quotas.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe fully-qualified URL to test.
strategyNoDevice strategy for the Lighthouse run. Defaults to "mobile".mobile
categoriesNoLighthouse categories to audit. Defaults to all four.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, openWorldHint=true, and idempotentHint=false, so safety and external-call behavior are covered. The description adds meaningful operational context beyond the annotations: it names the external Google PageSpeed Insights API, explains the API key vs. rate-limited modes, and enumerates the returned fields (field data when available, opportunities, diagnostics, resource size summary). It does not mention expected latency or error behavior, which keeps it from a 5.

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 description is two sentences and front-loaded with the purpose. The return-value enumeration is long but earns its place because there is no output schema. The API key note follows logically as a final operational caveat.

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?

With no output schema, the description carries the burden of explaining what is returned, and it does so thoroughly: Core Web Vitals with ratings, Lighthouse category scores, field data, opportunities, diagnostics, and resource size summary. It also covers authentication modes. Missing latency expectations and failure behavior are the only notable gaps for a tool that calls an external API.

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 description coverage is 100%, so the schema already fully documents url, strategy (with default mobile), and categories (with all four as default). The description adds no syntax, format, or constraint details beyond what the schema provides, making the baseline 3 appropriate.

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: 'Measure Core Web Vitals and Lighthouse scores for a URL using the Google PageSpeed Insights API.' This is a clear, distinctive purpose that an agent can tell apart from sibling tools like check_mobile_friendly or audit_accessibility on topic alone. It stops short of explicitly naming sibling alternatives or explaining why one would choose it over the deep accessibility audit, so it does not reach a 5.

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 purpose (performance measurement for a URL), and the description notes that it works without an API key but is rate-limited, or with PAGESPEED_API_KEY for higher quotas. However, there is no explicit when-to-use or when-not-to-use guidance, nor any reference to the sibling tools that overlap with Lighthouse's accessibility or SEO categories.

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