Skip to main content
Glama

Import Availability

import_availability
Read-onlyIdempotent

Container-level import status at a named APM Terminals facility, sourced directly from the terminal operating system: ready-for-delivery, container state (advised/inbound/yard/loaded/departed/retired), discharge time, yard location, freight/customs holds, demurrage owed, storage-paid-through date, vessel and appointment details. Look up by container number(s) or Bill of Lading number(s) 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": "WFHU5080179,EGHU9044403",
      "facility_code": "USLAX"
    },
    "name": "import_availability"
  }
}

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 container IDs or Bill of Lading numbers, comma-separated, e.g. "WFHU5080179,EGHU9044403".
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.
containersNoImport containers as returned by APM Terminals, normalized.
facility_codeNoAPM Terminals facility code the lookup ran against.
container_countNoNumber of import containers returned.

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.5/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/open-world, and the description adds substantial context beyond them: per-call billing by the vendor, OAuth2 client-credential requirement, refusal without a key, and gradual facility coverage meaning data may be absent for some terminals.

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-loads what the tool returns, then the lookup keys, then the key/billing requirement. The long field enumeration is informative rather than padded, with no redundant phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a read-only lookup with an output schema: auth path, coverage caveats, and single-terminal constraint are all covered. The only gap is batch-size limits on comma-separated asset IDs, which the schema also leaves open.

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, but the description adds a real constraint not present in the schema: only one facility_code per call, and the requirement that _apiKey be the user's own credentials. It does not mention any maximum number of asset_id values accepted.

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?

Names a specific resource (container-level import status at a named APM Terminals facility) and enumerates the exact fields returned, plus the two lookup keys. An agent can distinguish this from other container tools without opening the 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?

States clear usage context: look up by container or B/L number at exactly one terminal, BYO-key only, shared key not accepted. It does not route the agent to an alternative (e.g. container_event_history) when historical events rather than current status are needed, so no explicit when-not guidance.

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.