How It Works & Live Probe Telemetry
Backed by an embedded deterministic dataset of major global seaports, rail hubs, and air cargo gateways, this tool executes in 0.1 ms with zero upstream dependencies. Supplying a 5-character locode (^[A-Za-z]{2}[A-Za-z0-9]{3}$) such as USLAX resolves 'Los Angeles' along with its verified modal functions (Seaport, Rail terminal, Road terminal, Airport). Alternatively, omit locode and pass a city substring query to search matching hubs.
Verified Endpoint & Billing Contract
| MCP Tool Name | unlocode_port_resolver |
|---|---|
| Subdomain & Mode | logistics_address · deterministic |
| REST Endpoint | POST https://devour-com.fastmesh.dev/v1/organs/unlocode_port_resolver/invoke |
| MCP Endpoint | POST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp) |
| Verified Probe Latency | 0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z) |
| Archive Cache TTL | 30 days (2592000s) cross-tenant verified-hit cache |
| Empty / Error Rule | Charge $0.00 when code fails 5-character UN/LOCODE format or no matching port/city entry is found. |
| Plans & Privacy | Starter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale |
Production Use Cases
| Scenario | Trigger Input | Deterministic Output Value |
|---|---|---|
| Bill of Lading Pre-Validation | Verify origin CNSHA and destination USLAX before EDI transmission | Confirms valid 5-char UN/LOCODE and seaport function flag |
| Multimodal Freight Routing | Check whether hub supports rail or road handoff | Inspects functions array for Rail terminal and Airport capability |
| City-to-Port Matching | Agent has city name 'Rotterdam' but lacks port code | Returns NLRTM via deterministic substring search |
MCP JSON-RPC 2.0 & REST Invocation Examples
Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "unlocode_port_resolver",
"arguments": {
"locode": "USLAX"
}
}
}
Or invoke directly via REST (POST /v1/organs/unlocode_port_resolver/invoke):
curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/unlocode_port_resolver/invoke \
-H 'Content-Type: application/json' \
-d '{"input": {"locode": "USLAX"}}'
Verified structured JSON response:
{
"ok": true,
"matches": [
{
"locode": "USLAX",
"name": "Los Angeles",
"country": "US",
"functions": [
"Seaport",
"Rail terminal",
"Road terminal",
"Airport"
]
}
],
"format_valid": true,
"billable_usd": "0.005"
}
Strict Input Schema
{
"type": "object",
"properties": {
"locode": {
"type": "string",
"pattern": "^[A-Za-z]{2}[A-Za-z0-9]{3}$",
"description": "5-character UN/LOCODE (e.g. CNSHA, USLAX, NLRTM, DEHAM, SGSIN)."
},
"query": {
"type": "string",
"description": "Optional city/port substring search when locode is omitted."
}
},
"additionalProperties": false
}
Frequently Asked Questions
Does UN/LOCODE lookup depend on an external UNECE web scrape?
No. All lookups run deterministically in-process against curated trade hub tables, guaranteeing 0.1 ms latency and 100% uptime.
When does the tool return $0 billing?
Whenever the code fails the 5-character pattern or matches zero port/city entries in the dataset.