bfs_browse_catalog
Browse Swiss Federal Statistical Office themes or list datasets within a theme: omit the theme code to view all 21 statistical themes, or provide a 2-digit code to discover available datasets.
Instructions
Browse the BFS catalogue: the theme list, or the datasets within a theme.
Two modes in one tool (mode in the result says which ran):
Omit
theme_code→ list all 21 statistical themes with their 2-digit codes and dataset counts (the taxonomy of Swiss federal statistics).Provide
theme_code→ list the datasets in that theme (table IDs + titles) to feed bfs_get_table_metadata / bfs_get_data.
Args: params (BrowseCatalogInput): - theme_code (str | None): 2-digit theme code, e.g. '15' for Bildung; omit for the theme list - lang (str): Language code ('de', 'fr', 'it', 'en') - limit (int): Max tables to return (theme mode; default 20)
Returns:
BrowseCatalogResult. mode='themes' populates themes; mode='tables'
populates tables plus theme metadata. On error, error/hint are set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| mode | No | ||
| note | No | ||
| error | No | ||
| tables | No | ||
| themes | No | ||
| returned | No | ||
| next_step | No | ||
| theme_code | No | ||
| theme_name | No | ||
| total_datasets | No | ||
| total_in_theme | No |