ZIP code metadata
get_zipcodeReturns the state or states a US ZIP code (five digits or ZIP+4) belongs to; a ZIP that crosses a state line returns every state. Metadata only, no rates: use get_gsa_perdiem_by_zipcode for per diem. Send ZIPs as strings so leading zeros survive.
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": {
"zipcode": "<zipcode>"
},
"name": "get_zipcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zipcode | Yes | US ZIP (12345) or ZIP+4 (12345-6789) |