lookup_commune
Resolve a Swiss commune by name or BFS number for a given date. Get the official register entry with BFS number, canton, validity dates, and stable LINDAS URI as it existed on the specified date.
Instructions
Resolve a Swiss commune by name or BFS number, as of a given date.
The BFS commune number is the portfolio's join key. This tool returns
the official register entry — BFS number, name, canton, validity dates
and the stable LINDAS URI — for a commune as it existed on valid_at_date.
Args: params (LookupCommuneInput): - name_or_bfs_number (str): name/substring or BFS number - valid_at_date (str): ISO date; commune state as of this date
Returns:
LookupCommuneResult with matching communes (BFS number, canton,
validity, LINDAS URI). On error, error and hint are set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "lookup_commune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| note | No | ||
| error | No | ||
| query | No | ||
| source | No | Amtliches Gemeindeverzeichnis der Schweiz (BFS) — https://www.bfs.admin.ch/bfs/de/home/grundlagen/agvch.html. Open Government Data, freie Weiterverwendung. | |
| communes | No | ||
| provenance | No | ||
| total_matches | No | ||
| valid_at_date | No |