Channel performance
get_channelsSpend, revenue and ROAS per marketing channel (Meta, Google Ads, Klaviyo) over the whole period. QUOTE platform / platformRoas BY DEFAULT: each platform's own purchase claim, the figure Nuira's panels and recommendations use. Platform claims overlap (two platforms can claim one sale), so never add them up into store revenue. channels[].nuiraRevenue and nuiraRoas are Nuira's own attribution from Shopify touchpoints (measuredRevenue + modeledRevenue), a second opinion: quote them only when asked how Nuira attributes, and say so. previousPeriod.byChannel gives every one of these for the comparison period (previous by default, compare for last year). largestCampaign names a platform's campaign holding over half its claim, with roasWithout, the platform's ROAS without it. A channel with platform: null reported nothing — not zero. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the default period (the one on the operator's screen, else the last 30 days), which is not that month. When the operator names no period, send neither.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_channels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default period: the one on the operator's screen when the message names it, else the last 30 days. | |
| compare | No | What to compare the span with: previous (default, the same number of days just before), yoy (the same dates last year) or yoyWeekday (52 weeks back, the same weekdays — use it for natural Monday–Sunday weeks or whenever the operator says 'last year' over weeks). | |
| compareTo | No | Last day of the named comparison period, YYYY-MM-DD. | |
| compareFrom | No | First day of a NAMED comparison period, YYYY-MM-DD, with compareTo. For 'September with October': from/to October, compareFrom/compareTo the whole of September. Takes the place of compare. |