Spanish postal code lookup
spain_postal_codeLook up a 5-digit Spanish postal code to get its province, autonomous community with ISO 3166-2 code, and whether it is the provincial capital.
Instructions
Spanish postal code lookup: province, autonomous community (with ISO 3166-2 code) and whether it is the provincial capital.
ES: Provincia, comunidad autónoma (con su código ISO) y si es la capital de provincia, a partir de un código postal español de 5 cifras.
Free tool (no API key, no payment). Official Spanish/EU open data.
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": {
"cp": "<cp>"
},
"name": "spain_postal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cp | Yes | Código postal, p. ej. 28013 |