Check a Spanish postal address
check_spanish_addressChecks the required fields of a Spanish postal address offline, the five-digit postcode range and the province indicated by the postcode. Returns normalised fields and a list of problems. Street existence and recipient identity are not verified. Addresses outside Spain are reported as a problem, because both the sender and the recipient must be in Spain.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_spanish_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Town or city. | |
| name | No | Recipient's full name or company name. | |
| street | No | Street, number, floor and door. | |
| country | No | Country, if the user gave one. Anything other than Spain is reported as a problem. | |
| province | No | Province, if the user gave one. | |
| postal_code | No | Código postal, 5 digits. |