swisstopo_map_query
Query the Swiss national map catalog: search layers, inspect their fields, and retrieve features by coordinates or attribute values.
Instructions
Fragt den nationalen Swisstopo-Kartenkatalog ab (500+ Layer): Layer finden, Felder ansehen, Features abfragen.
Der übliche Ablauf ist eine Kette: operation='search_layers' liefert Layer-IDs, operation='layer_info' zeigt deren abfragbare Felder, danach operation='features_at_point' (räumlich) oder 'features_by_attribute' (nach Attributwert), und operation='feature_by_id' holt ein einzelnes Feature vollständig. Genau eine operation pro Aufruf. Felder, die zu einer anderen operation gehören, werden abgelehnt statt ignoriert — die Fehlermeldung nennt die zulässigen. Für Bauzone bzw. Gemeinde gibt es direkte Tools (swisstopo_zoning_at, swisstopo_municipality_at). 'features_at_point' nur nutzen, wenn zusätzliche Rohattribute gebraucht werden oder ein anderer Layer gefragt ist. Das ist der nationale Katalog von api3.geo.admin.ch. Für interkantonale und kantonale Quellen ist swisstopo_list_available_layers → swisstopo_query_geodata zuständig, für herunterladbare Datensätze swisstopo_search_geodata.
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. |