Skip to main content
Glama

Crux History

crux_history
Read-onlyIdempotent

How a site's or page's real-user Core Web Vitals have moved over roughly the last 40 weeks, from Google's Chrome UX Report history API. Returns a weekly series of 75th-percentile LCP, INP and CLS with each collection period's dates. AUTHORITATIVE for "did the performance work actually help" and for spotting the week a regression landed, each point is a 28-day trailing window, so consecutive points overlap and a step change in the series marks a real shift in visitor experience.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "origin": "https://www.shopify.com"
    },
    "name": "crux_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFull page URL. Give this OR origin.
originNoSite origin with scheme and no path, e.g. https://www.shopify.com. Give this OR url.
metricsNoMetrics to return; omit for all available. One or more of largest_contentful_paint, interaction_to_next_paint, cumulative_layout_shift, first_contentful_paint, experimental_time_to_first_byte, round_trip_time.
form_factorNoDevice class to report on: PHONE, DESKTOP, TABLET, or ALL_FORM_FACTORS (the default, every device combined).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / form_factor / description
      Previous value: -"Device class to report on: PHONE, DESKTOP, TABLET, or ALL_FORM_FACTORS (the default — every device combined)."New value: +"Device class to report on: PHONE, DESKTOP, TABLET, or ALL_FORM_FACTORS (the default, every device combined)."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world, so the description is free to add interpretive behavior — and it does: roughly 40 weeks of history, weekly points, and crucially that each point is a 28-day trailing window so consecutive points overlap and only a step change signals a real shift. That overlap caveat materially changes how an agent should read and report the output, which is value beyond any structured field.

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 the resource and time horizon, then the return shape, then the interpretation caveat — a logical order with no filler. The final sentence is long and stacks the 'AUTHORITATIVE' claim with the trailing-window explanation, making it slightly run-on, but every clause carries real information.

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 steps up by describing the return shape (weekly p75 LCP/INP/CLS with collection period dates) and the time semantics, which is the critical piece for a history tool. It omits a practically common condition — URLs or origins with no CrUX coverage returning empty results — and does not say which parameter wins if both url and origin are supplied.

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%, including the url-vs-origin mutual exclusivity and the enum/default for form_factor, so the schema already carries parameter meaning. The description mentions LCP, INP and CLS, aligning loosely with the metrics parameter, but adds no syntax, default, or selection guidance beyond it. Baseline 3 is 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?

Opens with a specific resource and scope: 'How a site's or page's real-user Core Web Vitals have moved over roughly the last 40 weeks,' naming the source (Chrome UX Report history API) and the returned series. It is clearly a time-series tool, distinguishing it in spirit from the snapshot-style crux_query_origin / crux_query_url siblings, but it never names those siblings explicitly, so the differentiation is inferred rather than stated.

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 use cases — 'did the performance work actually help' and 'spotting the week a regression landed' — which is exactly the context an agent needs to pick history over a current-snapshot query. It stops short of explicit exclusions (e.g., 'for a single current score use crux_query_url'), leaving the alternative unstated.

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.