swisstopo_lookup_postal_code
Resolve a Swiss postal code into its locality, municipality, district, canton, and official BFS commune number for joining statistical data.
Instructions
Löst eine Schweizer PLZ in Ort, Gemeinde, Bezirk und Kanton auf (OpenPLZ, amtlich).
Beantwortet «Zu welcher Gemeinde/welchem Kanton gehört PLZ 8001?» und
liefert die BFS-Gemeindenummer (bfs_commune_number).
bfs_commune_number ist der amtliche Join-Schlüssel zu
BFS-Statistikdaten (swiss-statistics-mcp) und zu zurich-opendata-mcp. Quelle
OpenPLZ (BFS/swisstopo OGD), nicht die swisstopo-Geodaten. Eine unbekannte PLZ
liefert eine leere Trefferliste mit erklärendem Hinweis.
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. |