Skip to main content
Glama

Get a shipment

get_shipment
Read-onlyIdempotent

Everything about one shipment: status, route, ETA (effective_eta is the one to quote, with original_eta and predicted_eta beside it), carrier, parties, delivery place, cargo, containers, labels, check counts, notes, and a free_time summary with the demurrage and detention clocks. Use it for "when does it arrive" or "how many free days are left". For where a shipment is now or the way it is taking, use get_tracking_timeline, which also shows a map (the same route, vessel and track data is the REST API's GET /shipments/{id}/map); for paperwork use list_documents. url is the shipment's page in Trackberry: link its display_name (container or air waybill number) to it, never a made-up URL. public_tracking_url is the shareable tracking page that needs no login, for sending to a customer or partner; it is null when the organization has public pages off or the shipment is archived or not yet live, so never invent one.

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_id": "<shipment_id>"
    },
    "name": "get_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.

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 cover read-only/idempotent safety, but the description adds real behavioral context beyond them: public_tracking_url is null when the organization disables public pages or the shipment is archived or not yet live, and url is the authenticated Trackberry page. It also warns against inventing URLs, which prevents a concrete failure mode.

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 payload summary before routing advice, and every sentence is functional. It is dense and the two URL sentences are lengthy, but they convey non-obvious rules rather than filler.

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?

No output schema exists, so the description must characterize the return value, and it does so thoroughly, including which ETA field to quote and the free-time/demurrage/detention content. For a single-parameter read tool, an agent has everything needed to call it and interpret the result.

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?

There is a single parameter with full schema coverage, including an example format and provenance ("as returned by search_shipments"), so the schema carries the weight. The description adds nothing further about shipment_id; its extra detail concerns return fields, not the input. 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 ("Everything about one shipment") and enumerates the returned facets: status, route, ETA fields, carrier, parties, cargo, containers, labels, checks, notes, free time. It explicitly separates itself from get_tracking_timeline (position/route/map) and list_documents (paperwork), so an agent can choose 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 Guidelines5/5

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

Gives concrete triggering questions ("when does it arrive", "how many free days are left") and names the alternatives with the condition that selects them: get_tracking_timeline for current position or route, list_documents for paperwork. Both when-to-use and when-not-to-use are stated.

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