swisstopo_find_commune
Resolve Swiss commune names to BFS numbers, find a commune by BFS number, or list all communes in a canton or district.
Instructions
Löst Gemeinden auf: Name→BFS-Nummer, BFS-Nummer→Name, oder alle Gemeinden eines Kantons/Bezirks.
Vier Modi (genau einen Parameter angeben): name (Name →
BFS-Nummer), bfs_number (BFS-Nummer → Gemeinde), canton (alle Gemeinden
eines Kantons) oder district (alle Gemeinden eines Bezirks). Beantwortet
z.B. «Welche Gemeinden liegen im Bezirk Uster und wie lauten ihre
BFS-Nummern?».
bfs_commune_number ist der amtliche Join-Schlüssel zu
BFS-Statistikdaten (swiss-statistics-mcp). canton akzeptiert Kürzel ('ZH')
oder BFS-Nummer ('1') — die Kürzel→Schlüssel-Auflösung erfolgt serverseitig,
weil der Pfad sonst still eine leere Liste liefert. Gemeindelisten sind
vollständig (interne Pagination), nicht auf 10 Einträge gekürzt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Actionable hint when a search returns nothing — what to try next, rather than a bare negative (audit ARCH-003). | |
| count | No | Number of structured results. | |
| source | No | Data source attribution. | swisstopo / geo.admin.ch |
| license | No | Data licence. | Swiss Open Government Data (opendata.swiss) |
| results | No | Structured result records (machine-readable). | |
| summary | Yes | Human-readable Markdown summary of the result. | |
| is_error | No | True if this represents a handled error. | |
| match_type | No | exact | fuzzy | none (for search-style tools). | |
| provenance | No | How the data was obtained. | live_api |
| retrieved_at | No | ISO-8601 retrieval timestamp. |