Skip to main content
Glama

Search shipments

search_shipments
Read-onlyIdempotent

Find shipments in the organization, newest first. Use it to answer "which shipments are on their way", "what arrives next week", "find the shipment for booking ABC123" or "what did we ship from Guayaquil". query matches references, B/L and container numbers, parties, ports and produce. Each result is a short summary: status, route, ETD and ETA, carrier, container numbers, failed checks, and latest_event, the last thing that actually happened (milestone, time, place, vessel). That answers "where is each shipment" for a whole list, so do not call get_tracking_timeline per shipment for an overview; call it only for one shipment's full history. Pass detail: "full" for every field (parties, cargo, notes, tracking state), or use get_shipment for one shipment with its free time. Use the id (such as "shp_123") for the other tools. Each has a url: link the shipment's container or air waybill number to it, never a made-up URL. To list one company's shipments ("what is coming for customer X"), find its id with list_companies and pass it as supplier, forwarder or customer. Archived shipments are excluded unless archived says otherwise. Results are paged: when has_more is true, pass the last id as starting_after.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_shipments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many results to return, 1 to 100.
queryNoFree text: a reference, B/L or container number, party, port or product.
detailNo"summary" (default) for the short result, "full" for every field of each shipment.summary
archivedNo"false" (default) for live shipments, "true" for archived ones, "any" for both.false
customerNoOnly shipments for this customer: a company id such as "cmp_12", from list_companies.
statusesNoOnly these statuses. Omit for all of them.
supplierNoOnly shipments from this supplier: a company id such as "cmp_12", from list_companies.
eta_afterNoOnly shipments whose effective ETA is on or after this ISO 8601 date or date-time.
forwarderNoOnly shipments handled by this forwarder: a company id such as "cmp_12", from list_companies.
eta_beforeNoOnly shipments whose effective ETA is on or before this ISO 8601 date or date-time.
warehouse_idNoOnly shipments delivered to this warehouse: an id such as "whs_3", as a shipment's `warehouse` shows it.
starting_afterNoPaging cursor: the id of the last result of the previous page. Only when has_more was true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / warehouse_id
      Added value: +{
      +  "description": "Only shipments delivered to this warehouse: an id such as \"whs_3\", as a shipment's `warehouse` shows it.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / customer
      Added value: +{
      +  "description": "Only shipments for this customer: a company id such as \"cmp_12\", from list_companies.",
      +  "type": "string"
      +}
    • addedInput schema / properties / forwarder
      Added value: +{
      +  "description": "Only shipments handled by this forwarder: a company id such as \"cmp_12\", from list_companies.",
      +  "type": "string"
      +}
    • addedInput schema / properties / supplier
      Added value: +{
      +  "description": "Only shipments from this supplier: a company id such as \"cmp_12\", from list_companies.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, but the description adds ordering (newest first), the default exclusion of archived shipments, the exact shape of a result including latest_event, and a paging protocol (has_more, last id as starting_after). It also prescribes a URL-linking behavior that no annotation conveys.

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 filtering, then result shape, then routing, then paging — a sensible order. It is dense and slightly run-on in the middle, but nearly every sentence carries operational information.

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?

Twelve parameters, no output schema, and no annotation-level detail on results — the description compensates by describing the returned fields, the latest_event concept, the full-detail mode, and pagination. Nothing an agent needs to invoke it correctly is missing.

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; the description still adds real meaning by explaining that query matches references, B/L and container numbers, that ids come from list_companies or result ids ("shp_123"), and that archived must be set explicitly. It does not cover the eta_after/eta_before or warehouse_id or statuses parameters, leaving that to the schema.

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 with scope ("Find shipments in the organization, newest first") and immediately distinguishes itself from get_tracking_timeline and get_shipment. An agent can tell which tool to pick 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 concrete question phrasings the tool answers, an explicit when-not ("do not call get_tracking_timeline per shipment for an overview; call it only for one shipment's full history"), routing to get_shipment for single-shipment detail, and the list_companies step for company filtering. Exclusions and alternatives are both spelled out.

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