Skip to main content
Glama

Get shipment

get_shipment
Read-onlyIdempotent

Everything about one shipment: summary, route (POL, transshipments, POD with actual and estimated times), current position estimate, carrier ETA and predicted ETA, and the latest actual events. Use it for "where is X" questions; for the full event history use get_shipment_events. shipment (required) is the BerthTime id, the tracked reference, or a container number on the shipment. Optional events (0-50, default 5) = how many latest actual events to include. Returns: shipment {id, reference, ref_type, carrier, customer_reference, status, tracking_status, phase, pol, pod, eta, original_eta, delay_hours, predicted_eta, eta_risk, vessel, containers, booking_number, bl_number, tracked_via, last_position, container_remarks}, route {stops[] {role, name, un_locode, arrival, departure}, legs[], current_position} or null, latest_events[], changes[] (the last 10 changes of plan, newest first: {seen_at, source, first, changes[] {field (eta, vessel, pol, pod, transshipments, state), old, new}, eta_delay_hours vs the first ETA}), changes_recorded_since. Unknown reference: an error that suggests list_shipments or track_shipment.

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

Input Schema

NameRequiredDescriptionDefault
eventsNoHow many of the latest events to include.
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.

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?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context on top: the cap of the last 10 changes of plan, that changes are newest-first and compare eta_delay_hours against the first ETA, which fields count as plan changes, and the exact error behavior for unknown references. This is well beyond what the annotations provide.

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 then usage then parameters then returns, with no filler sentences. The Returns enumeration is a long wall of field names, but it is defensible because no output schema exists; a slightly tighter grouping of return fields would improve scanability.

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 and a 3-parameter read tool, the description covers the input forms, defaults, limits, the full return shape including nullable route, and the error case. Nothing an agent needs to call it correctly or interpret the response is missing.

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 the schema already documents all three parameters including accepted reference forms and the 0-50 event bounds. The description's only meaningful addition is clarifying that `events` counts latest *actual* events, which is a marginal gain over the schema text; 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?

Opens with a specific verb+resource and enumerates the payload scope (summary, route, position, carrier/predicted ETA, latest events), and names the sibling get_shipment_events as the different alternative. An agent can distinguish it from list_shipments or get_shipment_events without opening a 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 for "where is X" questions, use get_shipment_events for the full event history. It also covers the failure path — an unknown reference returns an error pointing to list_shipments or track_shipment — so the agent knows when to escalate to a lookup tool.

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.