search_units
Find Polish territorial units by partial name to get their IDs for data queries. Specify voivodeship, powiat, or gmina level and retrieve unit identifiers.
Instructions
Search for territorial units by name — voivodeships, powiats, gminas. Returns unit IDs used with get_data. Level meanings: 0=Kraj (country), 2=Województwo, 5=Powiat, 6=Gmina.
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": {
"name": "<name>"
},
"name": "search_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Partial name (case-insensitive), e.g. 'Warszawa' | |
| level | No | Optional territorial level (0..7) | |
| limit | No |