SNB cube time series
get_snb_dataFetch labelled Swiss National Bank time series for a data cube, including dimension labels, units, scale and recent values, with optional date ranges and dimension filters to target specific series.
Instructions
Fetch labelled time series from any Swiss National Bank data-portal cube: each series has its dimension labels, unit, scale and the most recent values (trimmed to values_per_series). Optional date range (YYYY, YYYY-MM or YYYY-MM-DD matching the cube frequency) and dimension_selection from get_snb_cube_dimensions, e.g. {"D0":["M0"],"D1":["EUR1","USD1"]}. Examples: cube_id='zimoma' (money market rates incl. SARON), cube_id='devkum', from_date='2024-01'.
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": {
"cube_id": "<cube_id>"
},
"name": "get_snb_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max series returned (default 20) | |
| cube_id | Yes | SNB cube id, e.g. 'devkum' (monthly FX), 'zimoma' (money market rates); see list_snb_datasets | |
| to_date | No | End date, same format as from_date | |
| language | No | Label language: en or de (default en) | en |
| from_date | No | Start date, e.g. '2020-01' (monthly) or '2024-06-01' (daily) | |
| values_per_series | No | Most recent observations kept per series (default 24; trimmed further if the output would exceed the 50 KB response cap) | |
| dimension_selection | No | Dimension id → item ids, e.g. {"D0":["M0"],"D1":["EUR1"]} |