list_locations
Navigate the Polish administrative hierarchy or search locations by name to get TERYT codes for filtering real estate transactions.
Instructions
Browse locations in two modes:
TERYT hierarchy (parent param): Navigate voivodeship → county → municipality → precinct. Returns TERYT codes for use in search_transactions(teryt=...).
No parent: 16 voivodeships (2-digit codes)
2-digit: counties (4-digit), 4-digit: municipalities (6-digit), 6-digit: precincts
Name search (search param): Find districts by name (flat list, legacy). If both provided, parent takes precedence. Use 'location' for quick city searches, 'teryt' for precise administrative filtering (avoids name ambiguity, e.g. 'Wałcz' is both a county and a municipality).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No | TERYT parent code to browse children. 2-digit (voivodeship → counties), 4-digit (county → municipalities), 6-digit (municipality → precincts). Omit for all voivodeships. | |
| search | No | Filter locations by name (case-insensitive partial match, e.g. 'Krak' for Kraków districts). Ignored when parent is set. |