Search BFS STAT-TAB statistical tables
search_bfs_tablesSearch Federal Statistical Office (BFS) STAT-TAB tables by keywords to get table IDs and titles for metadata retrieval and data queries.
Instructions
Find Federal Statistical Office (BFS) tables on STAT-TAB by keywords: population, births, deaths, migration, tourism overnight stays, crime, students, vehicles, buildings, enterprises and hundreds more. Returns table ids (e.g. 'px-x-0102010000_101') with titles, to pass to get_bfs_table_metadata then query_bfs_table. Titles are in the chosen language, so use matching search terms (e.g. lang='de', query 'Logiernächte Kanton'). Examples: {query:'population commune age'}, {query:'hotel overnight stays', lang:'en'}.
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": {
"query": "<query>"
},
"name": "search_bfs_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of titles/labels: de, fr, it or en (default en) | en |
| limit | No | ||
| query | Yes | Keywords, e.g. 'population canton', 'Straftaten', 'overnight stays' |