Look up UN/LOCODE port codes
lookup_port_codeUse when a user needs the UN/LOCODE (port code or location code, e.g. Busan = KRPUS) of a port, airport or inland depot for a booking, bill of lading or invoice, or wants to check a code they were given. Find the 5-character UN/LOCODE of a seaport, airport or inland container depot by place name (or check a code): returns code, name, country, subdivision, type and Triplicate's country page, for the port of loading or discharge on bookings, bills of lading and invoices. UN/LOCODE 2025-1, 37,000+ places.
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": {
"query": "<query>"
},
"name": "lookup_port_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Optional: only seaports, airports or inland container depots | |
| limit | No | ||
| query | Yes | Port, city or airport name in English (e.g. 'Haiphong', 'Jebel Ali', 'Busan'), or a 5-character UN/LOCODE (e.g. 'NLRTM') | |
| country | No | Optional 2-letter ISO country code to search in, e.g. 'VN' |