Skip to main content
Glama

Correct a shipment's details

update_shipment
DestructiveIdempotent

Changes data: corrects the reference, ERP reference, consignor, delivery place, ETA, ETD, load type, house B/L, forwarder reference, forwarder ETA or warehouse of one shipment, as the person who connected this app, and records each change in the organization's audit log. A value set this way replaces the old one and outranks what documents and tracking say from then on, so use it only when the user asks to correct a field, and say what will change before calling it. Only the arguments you send change; null clears a field (not reference). Dates are days, YYYY-MM-DD. The answer lists changes, each changed field with its old from and new to value, so you can tell the user what was replaced; a value the shipment already had is not a change. Safe to repeat. The container, B/L or AWB number and the transport type cannot be changed with this tool: they release the carrier registration and notify the shipment's subscribers, so use change_transport_reference for them. 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>"
    },
    "name": "update_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
etaNoEstimated arrival, a day as YYYY-MM-DD on the destination port's clock.
etdNoEstimated departure, a day as YYYY-MM-DD on the origin port's clock.
house_blNoThe forwarder's house bill of lading number.
consignorNoThe consignor (shipper) as named on the shipment.
load_typeNo"fcl" for a full container load, "lcl" for less than a container.
referenceNoTrackberry's own reference for the shipment. Unique in the organization; cannot be cleared.
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.
warehouse_idNoThe warehouse the shipment is delivered to: an id such as "whs_3", as a shipment's `warehouse` shows it. `null` goes back to the organization's default.
erp_referenceNoThe reference in the user's ERP or purchasing system.
forwarder_etaNoThe forwarder's estimated arrival, YYYY-MM-DD.
delivery_placeNoWhere the goods are delivered to, as an address or a place, e.g. "Industriestr. 5, 40213 Düsseldorf, Germany". Its postal code, city and country are read from it.
forwarder_referenceNoThe forwarder's own reference for the shipment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / delivery_place
      Added value: +{
      +  "description": "Where the goods are delivered to, as an address or a place, e.g. \"Industriestr. 5, 40213 Düsseldorf, Germany\". Its postal code, city and country are read from it.",
      +  "maxLength": 255,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / warehouse_id
      Added value: +{
      +  "description": "The warehouse the shipment is delivered to: an id such as \"whs_3\", as a shipment's `warehouse` shows it. `null` goes back to the organization's default.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true; the description goes well beyond by explaining the consequence ("replaces the old one and outranks what documents and tracking say from then on"), the audit-log recording, that it acts as the connecting user, that unspecified fields are untouched, that null clears except for reference, and that unchanged values are not reported as changes. This is exactly the missing context an agent needs before a destructive write.

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 field list, then consequences, then the excluded-fields alternative — a sensible ordering. It is a single dense block with some repetition of schema facts (date format, reference uniqueness), which slightly dilutes but does not obscure.

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 12 parameters and no output schema, the description still explains the return payload (`changes` with `from`/`to` pairs) and how to interpret a no-op result. Combined with the destructive-write warnings and sibling routing, nothing material is missing for correct invocation.

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 baseline is 3; the description adds real semantics on top — null-as-clear with the reference exception, and that only the sent arguments are modified. A few details (YYYY-MM-DD dates, per-port clocks, warehouse default on null) merely echo schema text, so it stops short of a 5.

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 ("corrects") and resource (one shipment), enumerates the corrigible fields, and explicitly carves out the fields it will not touch. The contrast with change_transport_reference makes it distinguishable from the closest sibling 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 when-to-use rule ("only when the user asks to correct a field"), a required pre-call behavior ("say what will change before calling it"), and a named alternative with the reason for it (change_transport_reference for container/B/L/AWB/transport type). It also routes to search_shipments for obtaining shipment_id.

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