Skip to main content
Glama

Container Event History

container_event_history
Read-onlyIdempotent

Full lifecycle event history for one or more containers at a named APM Terminals facility, creation, booking/EDO reservation, vessel discharge, yard moves, operator changes, storage updates, each event timestamped, sourced directly from the terminal operating system. Look up by container 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": "TCLU1619533,MRSU3638119",
      "facility_code": "USLAX"
    },
    "name": "container_event_history"
  }
}

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 numbers, comma-separated, e.g. "TCLU1619533,MRSU3638119".
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.
containersNoContainers with event history as returned by APM Terminals, normalized.
facility_codeNoAPM Terminals facility code the lookup ran against.
container_countNoNumber of containers with event history 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.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety bar is covered. The description adds genuinely useful context beyond that: billing is per-call by the vendor, it requires the caller's own OAuth2 key, and the shared Pipeworx key will not work — plus the caveat that vendor coverage is not universal across facilities. It does not mention rate limits or latency, which is a minor gap.

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?

Purpose and scope are front-loaded in the first sentence, followed by the constraint and then the billing/key requirement — a sensible order. The event-type enumeration is somewhat dense and could be trimmed, but every clause carries actionable information rather than filler.

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?

An output schema exists, so return values need not be described. The description covers the remaining decision-critical facts for a read-only, vendor-billed lookup: what data comes back, the one-facility limit, the credential requirement, and the coverage caveat. Only exclusions (when to prefer another tool) are 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 above baseline by adding two meaningful constraints not stated in the schema fields: only one terminal per call, and the BYO-key prerequisite framed as a hard refusal condition. Format details (comma-separated container numbers, UN/LOCODE) are already in 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+resource (retrieve full lifecycle event history) for a specific entity (containers at a named APM Terminals facility), and enumerates the event types covered (creation, booking/EDO reservation, discharge, yard moves, operator changes, storage updates). This distinguishes it from siblings like empty_container_returns without needing to open 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 Guidelines3/5

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

'Look up by container number(s) at one terminal' implies the usage context (container-level terminal lookup, single facility per call). However, it gives no explicit when-not-to-use guidance and names no alternative tool for adjacent questions, leaving the agent to infer.

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.