Show breakdown chart
show_breakdown_chartShows a ranked bar chart for one dimension (channel, referrer, utmSource, utmCampaign, page, entryPage, country, device, browser, os) with visitors and revenue for one website and period.
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": "show_breakdown_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (inclusive). | |
| from | No | First day, YYYY-MM-DD (inclusive). Use with to. | |
| sort | No | Rank by visitors (default) or revenue. | |
| limit | No | Rows to show (1–20, default 10). | |
| period | No | Preset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set. | |
| compare | No | What change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all. | |
| timezone | No | IANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC. | |
| dimension | Yes | What to rank. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |