A ship's track
get_trackWhere one ship has been, by MMSI: her positions oldest first, over the last hours (1 to 168) or between two times within the last 180 days (at most 14 days). Each point is a time, latitude, longitude, speed and course, as columns names them. Shiptrail hears ships from receivers near coasts, so open sea shows as gaps; positions are kept where she turned or every few minutes, not every report.
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_track"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The window's end; now when left out. At most 14 days after from. | |
| from | No | The window's start, within the last 180 days. | |
| mmsi | Yes | Her MMSI: the whole nine-digit number, not part of it (find it with search_ships). | |
| hours | No | The last this many hours. Or give from and to instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The window's end, to the minute. | |
| url | Yes | Her page, or the port's, on shiptrail.io. | |
| from | Yes | The window's start, to the minute. | |
| mmsi | Yes | ||
| name | No | ||
| points | Yes | Her positions, oldest first. | |
| columns | Yes | What each point holds, in order: at, lat, lon, speedKn, courseDeg (null where not reported). | |
| thinned | No | Present when the window held more points than one answer carries: these were chosen evenly, her first and last among them. | |
| pointCount | Yes |