bfs_population
Retrieve Swiss population figures by region, year, age, or gender. Query demographic data for school planning and projections.
Instructions
Retrieve Swiss population statistics by region, year, and breakdown.
Accesses the core BFS population dataset (ständige Wohnbevölkerung) with flexible filtering by canton/municipality, year, age, and gender. Critical for school space planning and demographic projections.
Args: params (GetPopulationInput): - region (str): 'Schweiz', or canton name like 'Zürich' - year (Optional[str]): Year filter, e.g. '2024' - breakdown (str): 'total', 'age', or 'gender'
Returns: str: JSON with population figures for the selected region and breakdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| hint | No | ||
| table_id | No | ||
| title | No | ||
| source | No | ||
| updated | No | ||
| language | No | ||
| dimensions | No | ||
| rows_total | No | ||
| rows_returned | No | ||
| truncated | No | ||
| rows | No | ||
| note | No | ||
| cantons_compared | No | ||
| canton_variable | No | ||
| topic | No | ||
| topic_description | No | ||
| canton | No | ||
| canton_filter | No | ||
| region | No | ||
| breakdown | No | ||
| year | No |