search_places
Find localities by name, city name, or the beginning of a postal code. Use this when the user gives a place name and wants its postal code(s), or has a partial code. Results are ranked exact-name-first, then by population. Returns the same full records as lookup_postal_code. Restrict with country whenever it is known — names repeat across countries and states (there are many Springfields).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results, 1–100 (default 20) | |
| query | Yes | Place name or postal-code prefix, at least 2 characters | |
| country | No | Optional ISO code to restrict the search (US, FR, DZ, TN, MA) |