empty_container_returns

Pack: apm-terminals · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/empty_container_returns for the schema, then POST the same URL with its arguments for the data.

Empty-container-return status at a named APM Terminals facility: whether a container has been returned empty and the gate-in date/time, sourced directly from the terminal operating system. Look up by one or more container numbers at one terminal. Requires an API key (OAuth2 client credentials) — see _apiKey.

Parameters

NameTypeRequiredDescription
asset_idstringyesOne or more container numbers, comma-separated, e.g. “MRKU7137914,MRKU0562064”.
facility_codestringyes

Example call

Arguments

{
  "asset_id": "MRKU7137914,MRKU0562064",
  "facility_code": "SEGOT"
}

curl

curl -X POST https://gateway.pipeworx.io/apm-terminals/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"empty_container_returns","arguments":{"asset_id":"MRKU7137914,MRKU0562064","facility_code":"SEGOT"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('empty_container_returns', {
  "asset_id": "MRKU7137914,MRKU0562064",
  "facility_code": "SEGOT"
});

Response shape

FieldTypeDescription
facility_codestringAPM Terminals facility code the lookup ran against.
container_countintegerNumber of empty-return containers returned.
containersarrayEmpty-return containers as returned by APM Terminals, normalized.
sourcestringPublisher and dataset.
Full JSON Schema
{
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "facility_code": {
      "type": "string",
      "description": "APM Terminals facility code the lookup ran against."
    },
    "container_count": {
      "type": "integer",
      "description": "Number of empty-return containers returned."
    },
    "containers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "Empty-return containers as returned by APM Terminals, normalized."
    },
    "source": {
      "type": "string",
      "description": "Publisher and dataset."
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the apm-terminals pack
{
  "mcpServers": {
    "apm-terminals": {
      "url": "https://gateway.pipeworx.io/apm-terminals/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 6, 2026