Skip to main content
Glama

Shipment events

get_shipment_events
Read-onlyIdempotent

The full DCSA-style event timeline of one shipment (gate in, load, departure, arrival, discharge, ...), oldest first. Use it when the user wants the history; get_shipment already includes the last few actual events. shipment (required) is the BerthTime id, the tracked reference, or a container number on the shipment. Optional: classifier (ACT actual, EST estimated, PLN planned; default all), limit (most recent N, 1-500, default 50). Returns: shipment_id, reference, events[] {at, timezone, precision, classifier, code, type, description, location, un_locode, vessel, voyage, container}. Times are UTC.

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": {
      "shipment": "<shipment>"
    },
    "name": "get_shipment_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost recent N events (returned oldest first).
companyNoWhich company to act for: its id, @handle or exact name (see list_companies). Omit for the connection's default company.
shipmentYesBerthTime shipment id, or the tracked reference (container, bill of lading or booking number), or a container number on the shipment.
classifierNoACT actual, EST estimated, PLN planned. Default: all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, so safety needs no restating. The description adds genuinely non-obvious behavior: results are oldest first even though limit selects the most recent N, and all times are UTC. It stops short of covering pagination beyond limit or what an empty timeline looks like, so it is strong but not complete.

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-loaded with purpose and the sibling-routing rule before parameters and returns, with no filler sentences. The trailing 'Returns:' field list is dense but earns its place given there is no output schema; it is slightly long for the payload it conveys.

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?

With no output schema and a read-only tool, the description supplies the return shape field-by-field and the timezone/ordering caveats an agent needs to interpret results. The one real omission is the `company` parameter, which matters for multi-company connections but is left entirely to the schema.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented in the schema, and the description largely restates it (defaults of 50 and 'all', the three accepted identifier forms). The four parameters include `company`, which the description never mentions; it adds no interpretation beyond the schema, so baseline 3 applies.

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+resource ('the full DCSA-style event timeline of one shipment') and enumerates the event kinds it contains (gate in, load, departure, arrival, discharge). It also explicitly contrasts itself with the sibling get_shipment, so an agent can pick between them without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit selection rule: use this when the user wants the history, because get_shipment already includes only the last few actual events. That is a when-to-use plus a named alternative plus the condition that separates them, which is the full bar.

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.