Skip to main content
Glama

Export Booking Enquiry

export_booking_enquiry
Read-onlyIdempotent

Export booking status at a named APM Terminals facility: receiving window, cargo cut-off, vessel ETD, container counts received/preadvised/VGM-received, and per-container readiness for load, sourced directly from the terminal operating system. Look up by one or more booking reference numbers at one terminal. BYO-key only: this product is billed per call by APM Terminals, so it requires your own API key (OAuth2 client credentials), see _apiKey. Pipeworx's shared key does not cover it.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "asset_id": "205327590,CTR0201633",
      "facility_code": "CRPMN"
    },
    "name": "export_booking_enquiry"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyNoOAuth2 credentials as "<consumer_key>:<consumer_secret>" from a free APM Terminals API Store developer account (https://developer.apmterminals.com/), sign up, accept the free Data Services Plan, register an App to get a Consumer Key/Secret. Without this the tool refuses rather than guessing.
asset_idYesOne or more booking reference numbers, comma-separated, e.g. "205327590,CTR0201633".
facility_codeYesThe terminal's UN/LOCODE, e.g. "USLAX" (Los Angeles), "NLMSV" (Maasvlakte II, Rotterdam), "ESALG" (Algeciras), "ESBCN" (Barcelona), "USMOB" (Mobile), "USNWK" (Port Elizabeth), "USMIA" (Miami), "MAPTM" (Tangier), "SEGOT" (Gothenburg), "ITVDL" (Vado), "NGAPP" (Apapa), "BHKBS" (Bahrain), "ARBUE" (Buenos Aires), "INNSA" (Mumbai), "INPPV" (Pipavav), "JOAQJ" (Aqaba), "DKAAR" (Aarhus), "GTPRQ" (Puerto Quetzal), "GEPTI" (Poti), "CRMOB" (Moin), "COBUN" (Buenaventura), "HRRJK" (Rijeka), "ESGIJ" (Gijon), "PECLL" (Callao). Only one terminal per call. Data is not available for every APM Terminals facility, the vendor rolls coverage out gradually.

Output Schema

NameRequiredDescriptionDefault
sourceNoPublisher and dataset.
recordsNoExport booking records as returned by APM Terminals, normalized.
record_countNoNumber of export booking records returned.
facility_codeNoAPM Terminals facility code the lookup ran against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"OAuth2 credentials as \"<consumer_key>:<consumer_secret>\" from a free APM Terminals API Store developer account (https://developer.apmterminals.com/) — sign up, accept the free Data Services Plan, register an App to get a Consumer Key/Secret. Without this the tool refuses rather than guessing."New value: +"OAuth2 credentials as \"<consumer_key>:<consumer_secret>\" from a free APM Terminals API Store developer account (https://developer.apmterminals.com/), sign up, accept the free Data Services Plan, register an App to get a Consumer Key/Secret. Without this the tool refuses rather than guessing."
    • changedInput schema / properties / facility_code / description
      Previous value: -"The terminal's UN/LOCODE, e.g. \"USLAX\" (Los Angeles), \"NLMSV\" (Maasvlakte II, Rotterdam), \"ESALG\" (Algeciras), \"ESBCN\" (Barcelona), \"USMOB\" (Mobile), \"USNWK\" (Port Elizabeth), \"USMIA\" (Miami), \"MAPTM\" (Tangier), \"SEGOT\" (Gothenburg), \"ITVDL\" (Vado), \"NGAPP\" (Apapa), \"BHKBS\" (Bahrain), \"ARBUE\" (Buenos Aires), \"INNSA\" (Mumbai), \"INPPV\" (Pipavav), \"JOAQJ\" (Aqaba), \"DKAAR\" (Aarhus), \"GTPRQ\" (Puerto Quetzal), \"GEPTI\" (Poti), \"CRMOB\" (Moin), \"COBUN\" (Buenaventura), \"HRRJK\" (Rijeka), \"ESGIJ\" (Gijon), \"PECLL\" (Callao). Only one terminal per call. Data is not available for every APM Terminals facility — the vendor rolls coverage out gradually."New value: +"The terminal's UN/LOCODE, e.g. \"USLAX\" (Los Angeles), \"NLMSV\" (Maasvlakte II, Rotterdam), \"ESALG\" (Algeciras), \"ESBCN\" (Barcelona), \"USMOB\" (Mobile), \"USNWK\" (Port Elizabeth), \"USMIA\" (Miami), \"MAPTM\" (Tangier), \"SEGOT\" (Gothenburg), \"ITVDL\" (Vado), \"NGAPP\" (Apapa), \"BHKBS\" (Bahrain), \"ARBUE\" (Buenos Aires), \"INNSA\" (Mumbai), \"INPPV\" (Pipavav), \"JOAQJ\" (Aqaba), \"DKAAR\" (Aarhus), \"GTPRQ\" (Puerto Quetzal), \"GEPTI\" (Poti), \"CRMOB\" (Moin), \"COBUN\" (Buenaventura), \"HRRJK\" (Rijeka), \"ESGIJ\" (Gijon), \"PECLL\" (Callao). Only one terminal per call. Data is not available for every APM Terminals facility, the vendor rolls coverage out gradually."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description nonetheless adds genuinely useful behavior: this is BYO-key only, billed per call by APM Terminals, requires OAuth2 client credentials via _apiKey, and refuses rather than guessing without one. It does not mention rate limits, response size, or what happens when a booking ref is unknown or spans multiple terminals, so it stops short of full disclosure.

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 first sentence is front-loaded with the resource and the returned fields, and the second and third carry the lookup rule and the billing/auth caveat. The BYO-key sentence is long and leans on schema references (_apiKey) but each clause carries actionable information; there is little padding to cut.

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 an output schema present, the description need not document return shape, yet it still summarizes the returned fields, and it covers the auth/billing precondition that would otherwise cause a failed call. For a three-parameter read tool with full schema coverage and annotations, nothing an agent needs in order 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 earns an extra point by stating the cross-parameter constraint that only one facility_code may be supplied per call and that asset_id accepts one or more comma-separated booking references. It adds no semantics for _apiKey beyond what the schema already documents in detail.

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 precise verb and resource ("Export booking status") scoped to a named APM Terminals facility, then enumerates exactly what comes back: receiving window, cargo cut-off, vessel ETD, container counts, and per-container load readiness. It also names the lookup key (booking reference numbers) and the constraint (one terminal per call), so an agent can distinguish it from event-history or availability siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives a clear usage context: look up one or more booking refs at a single terminal, one terminal per call, and a warning that coverage is not universal and rolls out gradually. What is missing is explicit routing to a named alternative (e.g. container_event_history or import_availability) when the terminal is unsupported or when the user wants event-level detail rather than a status snapshot.

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.