Skip to main content
Glama

Ship events (account)

vessel_events
Read-onlyIdempotent

Events of a ship between two times (UTC, ISO 8601), computed from the AIS Trail archive. from and to are optional: without to, now (24 hours ago on plans without live data); without from, 7 days before to (on Free, no earlier than the oldest day the plan includes), as on the REST endpoint. Give mmsi or imo (with imo, every MMSI that reported that IMO number in the range). Types: ENTER_ZONE and EXIT_ZONE (arrival at and departure from a port or anchorage; port_id for port_calls, zone port or anchorage), STATE_CHANGED (MOVING, NOT_MOVING, LONG_STOP), NAME_CHANGED, IMO_CHANGED, CALLSIGN_CHANGED, DESTINATION_CHANGED and DRAUGHT_CHANGED (old and new value); only when asked by name or with types ['all']: AIS_GAP (long AIS silence while under way; old_value hours, new_value nautical miles), ENCOUNTER (slow close approach to another ship outside port areas, a candidate ship-to-ship transfer; new_value the other ship's MMSI), FLAG_CHANGED (the IMO number reappears under an MMSI with another flag) and POSITION_JUMP (a physically impossible position jump). Rows: [time, event, old_value, new_value, lat, lon, mmsi, port_id, zone, sanctions, detail]; detail says more about behaviour events. 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 200 events per call and at most 31 days; the plan's history depth, credits (1 per event returned), rate limit and 24-hour delay (on plans without live data) apply.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vessel_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd, e.g. 2026-10-08T00:00:00Z; default: now (24 hours ago on plans without live data)
imoNo7-digit IMO number; covers every MMSI that reported it in the range. Give mmsi or imo
fromNoStart, e.g. 2026-10-01T00:00:00Z; default: 7 days before to (on Free, no earlier than the oldest day the plan includes)
mmsiNo9-digit MMSI of the ship; give mmsi or imo
typesNoEvent types; default: every type except AIS_GAP, ENCOUNTER, FLAG_CHANGED, POSITION_JUMP. ['all'] for every type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / imo / description
      Added value: +"7-digit IMO number; covers every MMSI that reported it in the range. Give mmsi or imo"
    • addedInput schema / properties / mmsi / description
      Added value: +"9-digit MMSI of the ship; give mmsi or imo"
  2. Changed3 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Start, e.g. 2026-10-01T00:00:00Z"New value: +"Start, e.g. 2026-10-01T00:00:00Z; default: 7 days before to (on Free, no earlier than the oldest day the plan includes)"
    • changedInput schema / properties / to / description
      Previous value: -"End, e.g. 2026-10-08T00:00:00Z"New value: +"End, e.g. 2026-10-08T00:00:00Z; default: now (24 hours ago on plans without live data)"
    • changedInput schema / required
      Previous value: -[
      -  "from",
      -  "to"
      -]New value: +[]
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior. The description adds substantial behavioral context beyond them: account/API-key authentication, 200-event and 31-day caps, credit consumption, rate limits, 24-hour delay, row shape, and an explicit caveat that sanctions codes are informational only.

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 core purpose and default time behavior, then groups identity, event types, row structure, sanctions, authentication, and limits. It is dense and could be easier to scan with bullets, and some statements repeat the schema, but the length is justified by the tool's complexity.

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?

For a complex tool with no output schema, the description supplies the critical missing pieces: row columns, event-type meanings, authentication requirements, usage limits, and the informational nature of sanctions. An agent can call it correctly without additional documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description nonetheless adds meaning by spelling out event-type semantics, such as ENCOUNTER new_value being the other ship's MMSI and AIS_GAP old_value in hours/new_value in nautical miles. It also clarifies default type exclusions, though some from/to and mmsi/imo text repeats the schema descriptions.

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?

States the resource and scope precisely: events of a ship between two UTC times from the AIS Trail archive, with the supported event families enumerated. It does not explicitly contrast itself with siblings such as vessel_track or port_calls, but the event-oriented purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains defaults for from/to, the mmsi-or-imo requirement, and the type filtering rule, including that AIS_GAP, ENCOUNTER, FLAG_CHANGED, and POSITION_JUMP require explicit request or ['all']. It lacks an explicit 'use this instead of vessel_track/port_calls' routing statement, but gives clear operational context for calling it.

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.