bfs_population
Retrieve Swiss population figures by canton or municipality, year, and breakdown (total, age, gender) to support demographic analysis and school capacity planning.
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 |
|---|---|---|---|
| hint | No | ||
| note | No | ||
| rows | No | ||
| year | No | ||
| error | No | ||
| title | No | ||
| topic | No | ||
| canton | No | ||
| region | No | ||
| source | No | ||
| updated | No | ||
| language | No | ||
| table_id | No | ||
| breakdown | No | ||
| truncated | No | ||
| dimensions | No | ||
| rows_total | No | ||
| canton_filter | No | ||
| rows_returned | No | ||
| canton_variable | No | ||
| cantons_compared | No | ||
| topic_description | No |