Performance over time
get_timelineGet the same metrics as get_summary day by day or month by month (the dashboard's chart). granularity "auto" picks days for up to 92 days and months beyond; "day" is refused on longer periods. Only days or months that have data are listed. With compare, the compared period's points too, at the same granularity. Amounts are in USD (Amazon converts each marketplace). meta.data_last_date says up to which day the figures go.
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_timeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Relative period, resolved in `timezone`, e.g. "last_30_days", "this_month", "last_year", or "all_time" (from the oldest data held, through today). Ranges cover complete days like the dashboard: "last_30_days" is the 30 days ending yesterday, "this_month" stops at yesterday, "today" is today. Defaults to "last_30_days". Do not combine with start_date/end_date. | |
| compare | No | "previous_period" (the same number of days just before; "this_month" against the same days of last month) or "same_period_last_year" (the same dates a year earlier). Adds the compared period's figures and how each changed (the dashboard's "+18 %"). Both periods then end yesterday. Absent: no comparison. | |
| end_date | No | Last day, inclusive (YYYY-MM-DD). A date after today is treated as today. | |
| timezone | No | IANA time zone deciding which day "today" is for `range`, e.g. "Europe/Paris". Defaults to UTC. | |
| start_date | No | First day, inclusive (YYYY-MM-DD). Send together with end_date. | |
| ad_products | No | Keep only these ad types: SPONSORED_BRANDS, SPONSORED_DISPLAY, SPONSORED_PRODUCTS. Absent: all of them. | |
| granularity | No | "auto" (default), "day" or "month". | |
| marketplaces | No | Keep only these marketplaces, by country code: US, CA, MX, BR, UK, DE, FR, ES, IT, NL, SE, PL, BE, TR, AE, SA, EG, IN, ZA, JP, AU, SG. Absent: every marketplace. |