calculate_zip_code_distance
Calculate distance between two US ZIP codes using Haversine or Vincenty formulas. Get origin/destination details and distance in miles, kilometers, or other units.
Instructions
Calculate the distance between two ZIP codes using either the Haversine or Vincenty formula. Returns origin/destination details and the computed distance.
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": "<from>",
"to": "<to>"
},
"name": "calculate_zip_code_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination ZIP code (5 digits) | |
| from | Yes | Origin ZIP code (5 digits) | |
| unit | No | Distance unit | miles |
| method | No | Calculation method | haversine |