Skip to main content
Glama

Get a ship

get_ship
Read-only

Everything Shiptrail's page shows about one ship, by MMSI: identity, size, position, speed, course and status, destination and ETA, where she came from, recent port calls, particulars and registry facts, photo and its credit, a Wikipedia summary, and, with includeNearby, the ships near her. Where she has been is get_track; the ports she called at in the last 180 days, get_port_calls.

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": {
      "mmsi": "<mmsi>"
    },
    "name": "get_ship"
  }
}

Input Schema

NameRequiredDescriptionDefault
mmsiYesHer MMSI: the whole nine-digit number, not part of it (find it with search_ships).
includeNearbyNoAlso list the ships near her. Leave it off unless the question is about her surroundings.

Output Schema

NameRequiredDescriptionDefault
imoNo
urlYesHer page, or the port's, on shiptrail.io.
flagNo
kindNoThe map's class for her AIS type.
mmsiYes
nameYes
typeNo
beamMNo
onMapYes
photoNo
nearbyNo
voyageNo
dossierNopending: her particulars and photo are still being looked up; ask again in a minute.
lengthMNo
aisClassNo
callSignNo
draughtMNo
positionNoWhere she is, as she last broadcast it. For a ship off the map, where she was last heard.
lastHeardNoHer last position report.
wikipediaNo
particularsNoFrom Wikidata and the US Coast Guard, where they know her.
recentCallsNo
sharesImoWithNoOther MMSIs heard with her IMO number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / voyage / properties / fromBroadcast
      Added value: +{
      +  "description": "From is the first port of a route she broadcasts, not a departure Shiptrail saw.",
      +  "type": "boolean"
      +}
  2. Changed6 schema fields changed
    • addedOutput schema / properties / lastHeard / maxLength
      Added value: +24
    • addedOutput schema / properties / position / properties / at / maxLength
      Added value: +24
    • addedOutput schema / properties / recentCalls / items / properties / arrived / maxLength
      Added value: +24
    • addedOutput schema / properties / recentCalls / items / properties / departed / maxLength
      Added value: +24
    • addedOutput schema / properties / voyage / properties / departed / maxLength
      Added value: +24
    • addedOutput schema / properties / voyage / properties / eta / maxLength
      Added value: +24
  3. Changed1 schema field changed
    • changedInput schema / properties / mmsi / description
      Previous value: -"Her MMSI."New value: +"Her MMSI: the whole nine-digit number, not part of it (find it with search_ships)."
  4. Changed2 schema fields changed
    • changedInput schema / properties / includeNearby / description
      Previous value: -"Also list the ships near her. Off by default; leave it off unless the question is about her surroundings."New value: +"Also list the ships near her. Leave it off unless the question is about her surroundings."
    • changedInput schema / properties / mmsi / description
      Previous value: -"Her MMSI, 9 digits."New value: +"Her MMSI."
  5. Changed1 schema field changed
    • addedInput schema / properties / includeNearby
      Added value: +{
      +  "default": false,
      +  "description": "Also list the ships near her. Off by default; leave it off unless the question is about her surroundings.",
      +  "type": "boolean"
      +}
  6. First observed

TDQS

A4.2/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 behavioral context by disclosing the payload breadth, the conditional expansion via includeNearby, and the fact that photo credit and Wikipedia summary are bundled. It does not cover failure behavior for an unknown or missing MMSI, but that is a modest omission given the annotation coverage.

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?

Purpose and the sibling routing are front-loaded, and the second sentence is pure disambiguation with zero waste. The long field enumeration is dense and partly redundant with the existing output schema, which is the only thing keeping this from a 5.

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

Completeness5/5

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

An output schema exists, so return values need not be spelled out, and the description still covers scope, the one optional parameter's conditional effect, and the two nearest alternatives. For a two-parameter read-only tool with full schema coverage, nothing an agent needs to invoke it correctly is missing.

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 fully documented, including the nine-digit constraint and the 'leave it off unless...' guidance for includeNearby. The description adds only the bare phrase 'by MMSI' and 'with includeNearby, the ships near her', which does not go meaningfully beyond the schema, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('everything ... about one ship, by MMSI') and enumerates the exact payload domains — identity, size, position, speed, course, status, destination/ETA, port calls, particulars, photo, Wikipedia summary — so an agent knows precisely what it retrieves. It also names the two siblings it is not (get_track, get_port_calls), making it distinguishable without opening any schema.

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

Usage Guidelines4/5

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

Explicitly routes the agent away from this tool when the question is historical track ('Where she has been is get_track') or historical port calls ('the ports she called at in the last 180 days, get_port_calls'), which is strong negative guidance. The one gap is get_ships_near: the description introduces includeNearby without saying when to prefer that sibling over the flag, leaving a genuine ambiguity for a nearby-vessels question.

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.