get_histogram
What is the shape of one metric? Returns histogram buckets (count + share) plus summary stats.
Metric: one of lcp, inp, cls, fcp, ttfb (field CWV), or a scalar technique path when available.
Filter: same as get_metrics (device, cms, framework, cdn, provider). No group_by — call get_metrics with group_by to compare segments, then get_histogram per segment if needed.
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": {
"metric": "<metric>"
},
"name": "get_histogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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). | |
| metric | Yes | lcp | inp | cls | fcp | ttfb, or a contract scalar path. |