get_port_events_by_vessel
Retrieve a vessel's port arrivals and departures, optionally filtered by event type and time window; defaults to the last 2 hours.
Instructions
Get port events (arrivals/departures) for a specific vessel. Covers only the last 2 hours unless timeFrom is given. Events are kept for 31 days.
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": {
"vesselId": "<vesselId>"
},
"name": "get_port_events_by_vessel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page, 1 to 50. Defaults to 20. | |
| idType | No | Identifier type: imo (default) or mmsi | |
| timeTo | No | End of the time window, RFC3339. Defaults to now. | |
| timeFrom | No | Start of the time window, RFC3339. Without it the service returns only the last 2 hours. | |
| vesselId | Yes | Vessel identifier (IMO number by default) | |
| eventType | No | Filter by event type. Omit for both arrivals and departures | |
| nextToken | No | Pagination token from previous response | |
| sortOrder | No | Sort order by timestamp |