Skip to main content
Glama

Ships that passed a place

get_area_history
Read-only

The ships that passed within a radius of a port (UN/LOCODE) or a point (lat and lon) over the last 1, 3, 6, 12 or 24 hours, the most recently seen first: who each is, when she was first and last inside, and how close she came. The radius can be up to 25 km near the equator and less towards the poles. Follow any of them with get_track or get_ship.

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": "get_area_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude of the point, with lon.
lonNoLongitude of the point, with lat.
hoursNoThe last this many hours.
limitNoAt most this many ships, the most recently seen.
locodeNoA port's UN/LOCODE, five letters; or give lat and lon instead.
radiusKmNoHow far out to look, in kilometres.

Output Schema

NameRequiredDescriptionDefault
toYesThe window's end, a few minutes ago.
fromYesThe window's start: later than asked when the area was too busy for all of it.
hoursYes
shipsYes
totalYesEvery ship that passed; ships lists the most recently seen of them.
centerYes
trimmedNobusy: the window was cut to its newest hours; history: positions were not indexed that far back.
radiusKmYes
truncatedNoTrue when more ships passed than the limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / from / maxLength
      Added value: +24
    • addedOutput schema / properties / ships / items / properties / firstSeen / maxLength
      Added value: +24
    • addedOutput schema / properties / ships / items / properties / lastSeen / maxLength
      Added value: +24
    • addedOutput schema / properties / to / maxLength
      Added value: +24
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds useful behavioral detail: result ordering (most recently seen first), the fields returned, and the latitude-dependent radius cap of 25 km shrinking toward the poles. It does not mention rate limits, pagination, or failure modes for invalid coordinates.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence front-loads the core result set and the output shape, followed by a short constraint note and a routing hint. No filler and no repetition of schema text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation. The description covers scope, ordering, and the main geographic constraint; only edge-case behavior (invalid locode, empty results, radius behavior near poles in practice) is left implicit.

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 still adds meaning beyond the schema by explaining the hours enum as time windows and the radius cap varying with latitude, which explains the 25 km maximum constraint in geographic terms rather than restating it.

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?

States a specific verb and resource (ships that passed within a radius of a port or point) with scope details: time windows, ordering, and returned fields. It is clearly distinguishable from get_ship, get_track, and get_ships_near.

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?

Gives explicit follow-up routing — 'Follow any of them with get_track or get_ship' — and clarifies the locode vs lat/lon choice implicitly through the schema. It does not explicitly say when to prefer get_ships_near or search_ships, so no full exclusion set.

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.