Calculate postal distance
calculate_postal_distanceCalculate the great-circle distance between two postal codes in different countries, returning results in kilometers and miles for route planning, delivery estimates, or location analysis.
Instructions
Compute great-circle Haversine distance in kilometers and miles between two postal codes across any supported countries.
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": {
"from_country_code": "<from_country_code>",
"from_postal_code": "<from_postal_code>",
"to_country_code": "<to_country_code>",
"to_postal_code": "<to_postal_code>"
},
"name": "calculate_postal_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_postal_code | Yes | Destination postal code (e.g. 90210). | |
| to_country_code | Yes | Destination 2-letter ISO country code (e.g. US). | |
| from_postal_code | Yes | Origin postal code (e.g. 10001). | |
| from_country_code | Yes | Origin 2-letter ISO country code (e.g. US). |