Skip to main content
Glama

Get a port

get_port
Read-only

A port's Arrivals board (ships in port now, then ships en route by ETA) and Departures board (ships that left in the last 48 hours), as its Shiptrail page shows them, by UN/LOCODE. Each row carries the ship's MMSI for get_ship.

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": {
      "locode": "<locode>"
    },
    "name": "get_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAt most this many rows on each list; the counts are always whole.
locodeYesThe port's UN/LOCODE, such as FIHEL.

Output Schema

NameRequiredDescriptionDefault
urlYesHer page, or the port's, on shiptrail.io.
portYes
countsYes
arrivalsYes
truncatedNoTrue when a list was cut to the limit.
departuresYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedOutput schema / properties / arrivals / properties / enRoute / items / properties / departed / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / enRoute / items / properties / eta / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / enRoute / items / properties / inPortSince / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / enRoute / items / properties / lastHeard / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / inPort / items / properties / departed / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / inPort / items / properties / eta / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / inPort / items / properties / inPortSince / maxLength
      Added value: +24
    • addedOutput schema / properties / arrivals / properties / inPort / items / properties / lastHeard / maxLength
      Added value: +24
    • addedOutput schema / properties / departures / items / properties / departed / maxLength
      Added value: +24
    • addedOutput schema / properties / departures / items / properties / eta / maxLength
      Added value: +24
    • addedOutput schema / properties / departures / items / properties / inPortSince / maxLength
      Added value: +24
    • addedOutput schema / properties / departures / items / properties / lastHeard / maxLength
      Added value: +24
  2. Changed1 schema field changed
    • changedInput schema / properties / limit / maximum
      Previous value: -500New value: +100
  3. Changed1 schema field changed
    • changedInput schema / properties / locode / description
      Previous value: -"The port's UN/LOCODE, such as USHNL."New value: +"The port's UN/LOCODE, such as FIHEL."
  4. 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, so the safety profile is covered. The description adds real behavior beyond them: the two boards' contents, the 48-hour departure window, the ETA ordering, the fact that each row carries an MMSI, and that counts stay whole regardless of limit. It omits coverage/latency or data-freshness caveats, which would be the remaining gap for an open-world live-data tool.

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?

A single front-loaded sentence that identifies the resource first and then defines each board, with no filler. It is dense but every clause carries information; the 'as its Shiptrail page shows them' qualifier is the only slightly soft phrase.

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?

With two parameters, full schema coverage, and an output schema that documents the return shape, the description does what is needed: it explains the two boards and the lookup key. The one missing piece is how this differs from get_port_calls, which matters given how similar the sibling's scope likely is.

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%, so both parameters are already documented, including the limit's meaning ('at most this many rows on each list; the counts are always whole'). The description adds only the UN/LOCODE framing, which the schema already states with an example, so this is the baseline-3 case 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?

The description names the resource precisely (a port's Arrivals and Departures boards), gives the time boundaries that define each board (in port now / en route by ETA; departed in last 48 hours), and states the lookup key (UN/LOCODE). An agent knows exactly what data comes back. It does not, however, distinguish this from the close sibling get_port_calls, leaving that ambiguity to the agent.

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: the 48-hour and 'in port now' framing signals a current-snapshot lookup, and the MMSI note hints at chaining into get_ship. There is no explicit statement of when to prefer this over get_port_calls, get_area_history, or get_track, and no exclusions or prerequisites are given.

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.