bfs_search_tables
Search Swiss Federal Statistical Office table titles by keyword to locate relevant tables. Returns table IDs for metadata and data retrieval.
Instructions
Search for BFS statistical tables by keyword in their titles.
Performs a full-text search across all 682+ BFS table titles. Results include table IDs needed for bfs_get_table_metadata and bfs_get_data.
Note: First call builds a catalog (~682 API requests). Subsequent calls within 1 hour use the cached catalog and are instant.
Args: params (SearchTablesInput): - query (str): Search keywords, e.g. 'Lehrkräfte', 'Schüler Kanton' - theme_code (Optional[str]): Filter by theme, e.g. '15' - lang (str): Language for table titles - limit (int): Max results (default 10)
Returns:
SearchTablesResult with matching tables. On error, error and
hint are set and results is None.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| hint | No | ||
| query | No | ||
| total_matches | No | ||
| results | No | ||
| next_step | No |