Skip to main content
Glama

UN/LOCODE location lookup by 5-character code: name

logistics_seaport_unlocode
Read-only

UN/LOCODE location lookup by 5-character code (country + place, e.g. FIHEL): name, subdivision, status, port/rail/road/airport functions, IATA code and coordinates. Data is the UN/LOCODE list as mirrored on DataHub (ODC-PDDL), not the UNECE site itself. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "code": "<code>"
    },
    "name": "logistics_seaport_unlocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesUN/LOCODE, 5 letters: 2-letter country + 3-character location, e.g. FIHEL, SGSIN

Output Schema

NameRequiredDescriptionDefault
codeNo
iataNo
nameNo
sourceNo
statusNo
countryNo
checkedAtNo
functionsNo
coordinatesNo
subdivisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, and the description adds genuinely non-obvious context on top: the data provenance ('UN/LOCODE list as mirrored on DataHub (ODC-PDDL), not the UNECE site itself') so freshness/authority can be judged, plus the billing model ($0.002 per successful call, failure not charged, paid via x402 USDC). It stops short of stating rate limits, data update cadence, or what happens on an invalid/unknown code.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with what the tool returns and followed by provenance and pricing — both of which materially affect a caller's decision. The first sentence is fairly dense with comma-separated return fields, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the enumerated return fields are mild redundancy, but the description still covers the things structured fields can't: data source, licensing, and per-call cost. For a single-parameter read lookup with full annotation and schema coverage, nothing essential is missing apart from invalid-code error behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single 'code' parameter already documents the 2-letter country plus 3-character location format with examples (FIHEL, SGSIN). The description restates the same 'country + place' decomposition and adds no extra syntax rules, so it sits at the baseline where the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'UN/LOCODE location lookup by 5-character code (country + place, e.g. FIHEL)', and enumerates the returned fields (name, subdivision, status, transport functions, IATA code, coordinates). It's immediately clear what the tool does; the only gap is that it never names or contrasts itself with near-neighbors such as logistics_airport_iata_icao, even though IATA appears as a return field.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the input constraint: the caller must supply a 5-character code, which implicitly rules out free-text place searches. There is no explicit when-to-use/when-not guidance and no pointer to an alternative tool for name-based lookup or for IATA/ICAO airport identification, which is a realistic confusion given the sibling catalog.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources