Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Page speed and Core Web Vitals

page_speed
Read-onlyIdempotent

Measure a page's Core Web Vitals (LCP, INP, CLS) from real visitors and its Lighthouse score, then see the top fixes to improve loading speed on mobile or desktop.

Instructions

How fast is this page? PageSpeed Insights: Core Web Vitals from real visitors (LCP, INP, CLS), Lighthouse score and the top fixes. Sends only the URL to Google.

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

Input Schema

NameRequiredDescriptionDefault
urlYesFull public page URL.
strategyNoDefault mobile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds genuinely useful context beyond those annotations: it discloses that data is fetched from Google PageSpeed Insights and that only the URL is transmitted, which clarifies the open-world call and the privacy footprint. It stops short of mentioning quota or latency expectations for an external 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 short sentences: a hook question, a payload summary, and a data-handling note, in that order. Nothing is padded, and the most decision-relevant information (what the tool measures) comes first.

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 correctly takes on the burden of describing return values by naming the metric families and the fix recommendations, which is what an agent needs to decide the call is worth making. What remains uncovered is operational: expected latency and any rate limiting on the external PageSpeed Insights call.

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%, with both url and the mobile/desktop strategy enum documented including the mobile default, so the schema already does this work. The description adds only the incidental note that the URL is the sole value sent to Google, and never mentions the strategy parameter or how real-visitor versus Lighthouse data differs between strategies. The baseline of 3 is appropriate.

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 names the concrete question the tool answers ("How fast is this page?") and enumerates the specific outputs: Core Web Vitals (LCP, INP, CLS) from real visitors, a Lighthouse score, and top fixes. That verb-plus-resource specificity is enough to tell an agent immediately what the tool returns, and no sibling in the catalog overlaps with page-speed measurement.

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?

The opening question implies the situation in which the tool applies (you have a page and want its performance), but there is no explicit when-to-use framing, no prerequisites, and no statement about alternatives or when not to call it. The guidance is inferred rather than stated.

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