Skip to main content
Glama

AIS Trail

Port arrivals and departures (API key)

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. Needs an AIS Trail API key sent by the MCP client 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesEnd, e.g. 2026-09-02T00:00:00Z
fromYesStart, e.g. 2026-09-01T00:00:00Z
eventNoany
port_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/openWorld/non-destructive), the description discloses material operational traits: an AIS Trail API key must be sent as an 'Authorization: Bearer ap_live_…' header, a 100-port-call cap, a 366-day range cap, and a cost of 1 credit per port call returned. These are exactly the facts an agent needs before invoking.

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?

It is a single dense paragraph that front-loads the resource and scope before moving to event, auth, and limits. Nearly every clause carries information, though the return-field enumeration and limits could be split for faster scanning.

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?

With no output schema, the description correctly enumerates the return payload; with 50% parameter coverage it fills the enum and port_id gaps; and it covers auth, caps, and cost. For a read-only 4-parameter tool, an agent has everything needed to call it correctly.

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 50%, so the description must compensate and it largely does: 'event: any (in port at any time in the range, default), arrival or departure' explains the enum semantics rather than just repeating the labels, and it tells the agent where port_id comes from. from/to formats are left to the schema, leaving a small gap.

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?

The description names a specific verb+resource ('Ships that called at one port between two times') and enumerates the returned fields (ship with flag, arrival, departure, draught, cargo estimate, previous/next port) plus the data source ('AIS Trail archive'). It also routes the agent to a sibling ('Get the port_id from find_port') and relates itself to vessel_port_calls, so it is distinguishable without opening schemas.

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?

It gives clear context: obtain port_id from find_port, choose event with its default, and notes the credit rules 'apply as for vessel_port_calls'. It does not explicitly say when to prefer port_calls over vessel_port_calls or vessels_in_area, so there is no full exclusion guidance, but the intended usage is unambiguous.

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.

Resources