Read a dataset
get_datasetRead one Swiss Living Index dataset (id from list_datasets), exactly as published on the site (official values, unchanged). Filter with canton (2-letter) and/or commune (name or BFS number), section (a top-level key), from_year / to_year. Large datasets return a size summary first so you can narrow the request. Every reply carries source, source URL and the page to cite.
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": {
"id": "<id>"
},
"name": "get_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Dataset id from list_datasets, e.g. "migration/migration-switzerland". | |
| canton | No | Canton as 2-letter abbreviation, e.g. "ZH", "GE", "TI". Filters the dataset to that canton. | |
| max_kb | No | reply size limit in KB, default 150, max 600 | |
| commune | No | Swiss commune: official name, BFS number or 4-digit postcode, e.g. "Winterthur", "230" or "8400". «8001 Zürich» and «Basel (BS)» also work. Filters the dataset to that commune. | |
| section | No | One top-level section of the dataset (the too_large answer lists them). | |
| to_year | No | Keep year series up to this year, e.g. 2025. | |
| from_year | No | Keep year series from this year, e.g. 2015. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attribution | No |