Breakdown
onelence_get_breakdownSite traffic: visitors and conversions split by one dimension (source, channel, campaign, keyword, affiliate, entry, page, hostname, country, region, city, device, browser, os), largest first. A row's name works as filter_value in onelence_get_performance. A visitor counts in every row they appear in, so rows can add up to more than the site's visitors. compare=previous_period adds each row's visitors and conversions in the period before, with the percent change; use it for "what grew or dropped".
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": {
"dimension": "<dimension>"
},
"name": "onelence_get_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end, inclusive for a date. Defaults to now. | |
| site | No | Site domain (e.g. example.com) or site id. Defaults to the workspace's newest active site. | |
| limit | No | Items to return (default 25). | |
| start | No | Window start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end. | |
| cursor | No | next_cursor from the previous call, for more. | |
| compare | No | previous_period adds each row's visitors and conversions in the same-length window right before, with the percent change (default none). A row absent from that window counts 0 there, or has unknown (null) previous values when that window held more rows than one read returns. | |
| dimension | Yes | ||
| filter_value | No | ||
| filter_dimension | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| more | No | How to fetch the next page, when has_more. | |
| note | Yes | ||
| site | Yes | ||
| filter | Yes | ||
| object | Yes | ||
| window | Yes | ||
| has_more | Yes | ||
| dimension | Yes | ||
| comparison | Yes | ||
| next_cursor | Yes | ||
| names_hidden | Yes |