Postal code lookup
lookup_postal_codeThe places of a postal code (GeoNames); case, spaces and hyphens in the code are ignored. partial is true for the countries GeoNames gives only in part (CA, NL, GB: first part; CL, CN, AR: first digits; IE, MT: first letters; BR: major codes). 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends Authorization: Bearer <key>.
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": {
"country": "<country>",
"code": "<code>"
},
"name": "lookup_postal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Postal code to look up, up to 20 characters. | |
| limit | No | Default 100 | |
| offset | No | Number of results to skip for pagination, from 0 to 10000. | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. TR. |