Skip to main content
Glama

Change a shipment's container, B/L or air waybill number

change_transport_reference
DestructiveIdempotent

Changes data: replaces the container, B/L or air waybill number of one shipment, as the person who connected this app, and records it in the organization's audit log. It has large side effects, so tell the user what will happen and get their confirmation before calling it, and call it only when they ask to correct the number. The new number is checked first (a container number must pass its ISO 6346 check digit, an air waybill its check digit) and nothing changes if it is refused. Then: the number is marked as typed by a person, so documents can no longer overwrite it; if the shipment is being tracked, its registration with the carrier's tracking service is released and tracking starts again under the new number (not when its tracking was entered by hand or it is archived, and a shipment that was never tracked stays untracked, with tracking_restarted false: use start_tracking for that); the shipment's public tracking subscribers are emailed that the number changed; and its checks run again. Send transport_type (ocean or air) only when the mode changes too. Safe to repeat: the number the shipment already has changes nothing and sends nothing, with changed false. Giving a number to a shipment that has never had one is billed once, as in Trackberry. For other fields, such as the reference, ETA or consignor, use update_shipment instead. Answers with the shipment, previous_transport_reference, transport_reference and tracking_restarted. Get the shipment_id from search_shipments.

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>",
      "transport_reference": "<transport_reference>"
    },
    "name": "change_transport_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.
transport_typeNo"ocean" or "air". Only when the shipment changes mode; otherwise it keeps its own.
transport_referenceYesThe new container number (like MSCU1234566), bill of lading number or air waybill number (like 016-25645270).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations: validation is attempted first and nothing changes if refused, the number is marked human-typed so documents can no longer overwrite it, carrier tracking is released and restarted (with the hand-entered/archived/never-tracked exceptions), public subscribers are emailed, and checks re-run. It also discloses audit logging, the one-time billing case, and the idempotent no-op behavior with `changed` false.

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 the action and the confirmation requirement, and nearly every clause carries distinct information. It is dense and semicolon-chained, with nested parentheticals about tracking exceptions that make it slower to parse than it needs to be, but little is genuinely redundant.

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?

For a destructive, open-world mutation with no output schema, the description covers validation, side effects, idempotency, billing, and the returned fields (shipment, previous_transport_reference, transport_reference, tracking_restarted). An agent has what it needs to call it safely.

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, and the description adds real meaning: transport_type is sent only when the mode changes, and transport_reference is validated (ISO 6346 check digit for containers, check digit for air waybills). It does not add format detail for B/L numbers, which is the one remaining 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?

States a specific verb and resource (replaces the container, B/L or air waybill number of one shipment) and immediately scopes it to a single shipment. It names the sibling it is not (update_shipment for other fields) and start_tracking for the never-tracked case, so an agent can route correctly.

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?

Explicit when-to-use (only when the user asks to correct the number) and a required precondition (tell the user what will happen and get confirmation). It names alternatives with the conditions that select them: update_shipment for reference/ETA/consignor, start_tracking for a never-tracked shipment.

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