Skip to main content
Glama

List a shipment's documents

list_documents
Read-onlyIdempotent

The documents attached to one shipment (bill of lading, commercial invoice, packing list, certificates and so on), each with an id such as "doc_45", its type, file name and processing status. Use it for "which documents does shipment shp_123 have" or "is the certificate of origin missing". Use get_document_data for what a document says, and get_document_file to read the original when downloadable is true. By default it lists the current paperwork. view "reference_only" lists the documents held out as reference material (set_document_relevance can file them) and view "superseded" the older versions that a newer file replaced (restore_document can bring one back); each entry says its relevance and superseded_by. Each entry has a shipment_url: link the shipment's container or air waybill number to it, never a made-up URL.

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

Input Schema

NameRequiredDescriptionDefault
viewNo"current" (default) for the shipment's paperwork, "reference_only" for documents held out of it, "superseded" for replaced older versions.current
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / view
      Added value: +{
      +  "default": "current",
      +  "description": "\"current\" (default) for the shipment's paperwork, \"reference_only\" for documents held out of it, \"superseded\" for replaced older versions.",
      +  "enum": [
      +    "current",
      +    "reference_only",
      +    "superseded"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description goes further by explaining what each view excludes (reference material held out of the paperwork, older replaced versions) and which tools can change that state. It also discloses the `downloadable` gate on get_document_file and warns against fabricating URLs, which is real behavioral context not present in structured fields.

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?

The core capability is front-loaded in the first sentence, followed by usage routing, then the view semantics. It is information-dense rather than padded, though the final `shipment_url` instruction reads as a formatting rule that could be tightened without losing meaning.

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?

There is no output schema, so the description carries the return-shape burden and does so fully: entry id, type, file name, processing status, relevance, superseded_by, and the shipment_url. For a two-parameter read tool it leaves nothing an agent would need before calling it.

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% and the `view` enum is already documented in the schema, so the baseline is 3. The description still adds value by tying each view value to the workflows that produce or reverse it (set_document_relevance files reference material, restore_document brings back superseded files), which the schema does not convey.

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?

The first sentence names a specific verb and resource and enumerates the document kinds returned (bill of lading, commercial invoice, packing list, certificates), plus the concrete per-entry fields (id such as "doc_45", type, file name, processing status). It also distinguishes itself from get_document_data and get_document_file by function, so an agent can pick it 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?

It gives literal example questions that select this tool ("which documents does shipment shp_123 have", "is the certificate of origin missing") and explicitly routes content-reading to get_document_data and file-reading to get_document_file. It also explains the three view modes and names the sibling that manages each non-default state (set_document_relevance, restore_document).

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