Skip to main content
Glama

AlchemyAgent

Core Web Vitals trend (last 40 weeks)

cwv_trend
Read-only

Show how a site's real-user Core Web Vitals (LCP, INP, CLS, FCP, TTFB) changed over the last ~40 weeks, from the Chrome UX Report History API. Use for 'are we getting faster?', before/after a redesign or migration, or comparing then vs now. Pass a homepage for the whole site (origin) or a deeper URL for that page; falls back to the origin when the page has too little traffic. Uses the Chrome UX Report History API (https://developer.chrome.com/docs/crux/history-api).

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic URL or domain, e.g. example.com or https://example.com/pricing/
deviceNophone

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description adds genuinely non-obvious behavior: the ~40-week window, the CrUX History API as data source, and the fallback to origin when a page has too little traffic. It does not cover auth, quotas, or result granularity, which keeps it off 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?

Front-loaded with purpose and use cases, then the URL/fallback rule. The final sentence repeats the Chrome UX Report History API reference already made in sentence one, which is the only real waste.

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?

For a two-parameter, read-only tool with no output schema, the definition covers data source, time window, URL scoping, and the low-traffic fallback – enough to call it correctly. Device selection and the shape of the returned trend series are left unspecified.

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 coverage is 50% (only url is documented), so the description must carry weight – and it does, explaining that a homepage yields origin-level data while a deeper URL scopes to that page. The device parameter and its 'all' enum value are never mentioned in the description, leaving one gap.

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?

States a specific verb and resource with concrete scope: 'Show how a site's real-user Core Web Vitals ... changed over the last ~40 weeks' and names the five metrics measured. The 'real-user' and 'History API' framing implicitly separates it from a lab-data sibling like pagespeed_check, though no sibling is named explicitly.

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?

Gives concrete trigger scenarios ('are we getting faster?', before/after a redesign or migration, then vs now) that an agent can pattern-match against user intent. No when-not-to-use or explicit alternative is offered, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.