Skip to main content
Glama

Port arrivals and departures (account)

port_calls
Read-onlyIdempotent

Ships that called at one port between two times (UTC, ISO 8601), from the AIS Trail archive: ship (with its flag from the MMSI), arrival, departure, draught on arrival and departure, cargo estimate, previous and next port. Get the port_id from find_port. event: any (in port at any time in the range, default), arrival or departure. The sanctions column gives the codes of the sanctions lists (OFAC, UK, EU) that name the ship's IMO number; informational only, not a compliance determination. Needs an AIS Trail account: sign in when the MCP client asks, or send an API key as the HTTP header 'Authorization: Bearer ap_live_…'. At most 100 port calls per call and at most 366 days; the plan's rules and credits (1 per port call returned) apply as for vessel_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": {
      "port_id": "<port_id>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "port_calls"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd, e.g. 2026-09-02T00:00:00Z
fromYesStart, e.g. 2026-09-01T00:00:00Z
eventNoany: in port at any time in the range; arrival: arrived in the range; departure: departed in the rangeany
port_idYesPort id from find_port

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / event / description
      Added value: +"any: in port at any time in the range; arrival: arrived in the range; departure: departed in the range"
    • addedInput schema / properties / port_id / description
      Added value: +"Port id from find_port"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive behavior, yet the description adds substantial operational context: sign-in or Bearer API key authentication, a 100 port-call cap, a 366-day range cap, and credit cost of 1 per returned call. It also explicitly caveats that the sanctions column is informational and not a compliance determination, which prevents misuse.

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?

Front-loads the entity, scope and returned fields, then layers time semantics, auth, and limits in a logical order. Sentences are dense but each carries load; the run-on open sentence is the only structural weakness.

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 no output schema, the description compensates by listing the returned columns, and it covers auth, pagination limits and credit cost for a metered, account-gated tool. What remains implicit is how results are ordered or paged when more than 100 calls fall in range.

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 coverage is 100%, so the schema already documents all four parameters including the event enum and ISO timestamps. The description repeats the event semantics and adds only the UTC framing, so it meets the baseline without adding much new meaning.

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 ('Ships that called at one port between two times'), names the source archive, and enumerates the returned fields (flag, arrival, departure, draught, cargo estimate, previous/next port). An agent can tell this is a per-port call history query, distinct from area or vessel-tracking siblings.

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?

Gives useful routing for one parameter ('Get the port_id from find_port') and explains the event selector's effect on results, plus the account requirement. However it never says when to prefer this over vessel_port_calls or expected_arrivals; vessel_port_calls appears only as a billing comparison, so the choice between the two similar tools is left to inference.

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.