Canton metric history
get_trendHistorical year-series for a metric in one canton (e.g. sunshine back to 1884, migration to 1981, rent to 2010). metric = key from list_metrics with history: rent_mean, net_migration_per_1000, foreigner_pct, sunshine_hours, balance_per_capita, beds_per_1000, jobs, unemployment_pct (SECO yearly averages to 1993). Optional from_year.
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": {
"canton": "<canton>",
"metric": "<metric>"
},
"name": "get_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canton | Yes | Canton as 2-letter abbreviation, e.g. "ZH", "GE", "TI". | |
| metric | Yes | Metric key with a year series, e.g. "rent_mean", "sunshine_hours", "unemployment_pct". | |
| from_year | No | First year to return, e.g. 2000; omit for the whole series. |