bfs_search_tables
Find Swiss Federal Statistical Office tables by searching their titles with keywords, filter by theme, and retrieve table IDs for subsequent data access.
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 |
|---|---|---|---|
| hint | No | ||
| error | No | ||
| query | No | ||
| results | No | ||
| next_step | No | ||
| total_matches | No |