Skip to main content
Glama

A ship's port calls

get_port_calls
Read-only

The ports one ship called at, by MMSI, newest first: over the last 180 days (or fewer), up to 100 calls, each with when she arrived and left. A call is a stop of 10 minutes or more near a port that Shiptrail heard.

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_port_calls"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoThe last this many days.
mmsiYesHer MMSI: the whole nine-digit number, not part of it (find it with search_ships).
limitNoAt most this many calls, the newest.

Output Schema

NameRequiredDescriptionDefault
urlYesHer page, or the port's, on shiptrail.io.
daysYes
mmsiYes
callsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / default
      Previous value: -90New value: +180
    • changedInput schema / properties / days / maximum
      Previous value: -90New value: +180
  2. Changed2 schema fields changed
    • addedOutput schema / properties / calls / items / properties / arrived / maxLength
      Added value: +24
    • addedOutput schema / properties / calls / items / properties / departed / 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. Added

TDQS

A3.9/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 context beyond them: a 180-day lookback ceiling, a 100-call cap, newest-first ordering, and a coverage caveat that a call is only counted if Shiptrail heard it and lasted 10+ minutes.

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

Conciseness5/5

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

Two compact sentences, front-loaded with the resource and ordering, followed by bounds and the definition of a call. Every clause carries information the agent needs; nothing is padding.

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?

With an output schema handling return values and annotations covering safety and openness, the description supplies what remains: scope, ordering, hard caps, and the data-coverage caveat. An agent could call this correctly from the definition alone.

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 schema already documents days, limit and MMSI. The description only restates the 180-day and 100-call bounds rather than adding format or edge-case meaning, so baseline 3 applies.

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?

Specific verb and resource: 'The ports one ship called at, by MMSI, newest first' tells the agent exactly what is returned, plus ordering and the notion of a call. It does not explicitly route against siblings like get_port or get_track, so it stops short of full differentiation.

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 implied — retrieve a single vessel's port-call history — but there is no explicit when-to-use versus alternatives such as get_port or get_area_history, and no stated prerequisites. The workflow hint to find the MMSI with search_ships lives in the schema rather than the description.

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.