Port arrivals and departures (account)
port_callsShips 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
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End, e.g. 2026-09-02T00:00:00Z | |
| from | Yes | Start, e.g. 2026-09-01T00:00:00Z | |
| event | No | any: in port at any time in the range; arrival: arrived in the range; departure: departed in the range | any |
| port_id | Yes | Port id from find_port |