Metric Breakdown
rybbit_get_metricBreak down Rybbit analytics metrics by dimension such as page, browser, country, or traffic source; get session-sorted rows with counts, percentages, pageviews, and bounce rates.
Instructions
Get metric breakdown by dimension. Use parameter='pathname' for top pages, 'browser'/'operating_system'/'device_type' for tech stats, 'country'/'city' for geo, 'utm_source'/'utm_campaign' for marketing, 'referrer'/'channel' for traffic sources, 'entry_page'/'exit_page' for user flow. Returns rows sorted by sessions with count, percentage, pageviews and bounce_rate, 50 per page; totalCount says how many values there are.
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": {
"siteId": "<siteId>",
"parameter": "<parameter>"
},
"name": "rybbit_get_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, 1-indexed | |
| limit | No | Rows per page | |
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| endDate | No | End date in ISO format (YYYY-MM-DD) | |
| filters | No | Array of filters. Example: [{parameter:'browser',type:'equals',value:['Chrome']},{parameter:'country',type:'equals',value:['US','DE']}] | |
| timeZone | No | IANA timezone (e.g., Europe/Prague). Default: UTC | |
| parameter | Yes | Metric dimension to break down by. device_model and app_version apply only to mobile-type sites (legacy: app) tracked via SDK. | |
| startDate | No | Start date in ISO format (YYYY-MM-DD) | |
| pastMinutesEnd | No | Alternative to dates: minutes ago end (default 0 = now) | |
| pastMinutesStart | No | Alternative to dates: minutes ago start (e.g., 60 = last hour) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Metric breakdown rows | |
| note | No | Caveat about this response, e.g. how many rows were returned and how to get the rest | |
| truncated | No | True when rows were dropped to keep the response under the size cap | |
| totalCount | No | Total rows across all pages |