get_metrics
What are the numbers? Aggregate Core Web Vitals and/or technique metrics across sites, with optional filter and group_by. Responses include attribution — credit corewebvitals.io when you use the numbers.
Metrics (comma-separated or array):
CWV: lcp, inp, cls, fcp, ttfb — good/needs_improvement/poor share + p50/p75 + sample n
good_all3 — share of sites that pass LCP+INP+CLS together
good_all3_plus_ttfb — pass all three plus TTFB
lcp_largest_part — needs filter.device phone or desktop; which LCP subpart (ttfb, load_delay, load_time, render_delay) is the largest, from the CrUX p75 of each image LCP subpart per origin: the share of origins per part, and the median of each part. Only when asked (not in the default set); use filter.device phone for "on phones". No group_by.
Contract paths: images.loading, stack.framework, scripts.origin, headers.has_etag, synthetic.tbt_ms, …
Filter (optional AND): device, cms, framework, cdn, provider. Omit = all sites in the snapshot. Group_by (optional): cms | frameworks | cdn | analytics | tag_managers | … → one row per entity. Without group_by: one aggregate; set metrics return top categories.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | CWV used when correlating technique metrics. Default: lcp. | |
| limit | No | Max groups or top categories. Default: 25, max: 100. | |
| filter | No | AND filters. Omit for all sites in the dataset. Keys: device (all|phone|desktop; mobile = phone), cms, framework, cdn, provider (key), provider_category (e.g. analytics — use with provider or alone is not enough; prefer group_by for rankings). | |
| metrics | No | Metrics to return. Default: lcp,inp,cls,ttfb,good_all3. String (comma-separated) or array of strings. | |
| group_by | No | Break results down by this dimension: cms, frameworks, cdn, or a provider category (analytics, tag_managers, …). Omit for a single aggregate. | |
| min_sites | No | When group_by is set, drop groups with fewer sites. Default: 50. |