get_metrics
Ranks a chosen analytics dimension—such as path, referrer, browser, OS, device, country, or event—for a website and date range, returning top results up to the limit.
Instructions
Rank one dimension: path, referrer, browser, os, device, country, event, and others.
metric also accepts entry, exit, title, query, hostname, domain, channel, tag, screen, language, region, city, and UTM fields. url is an alias for path (older Umami servers called this dimension url). limit is 1 to 100.
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": {
"website": "<website>"
},
"name": "get_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| path | No | ||
| event | No | ||
| limit | No | ||
| device | No | ||
| metric | No | path | |
| browser | No | ||
| country | No | ||
| website | Yes | ||
| referrer | No | ||
| timezone | No | ||
| date_range | No | 7d |