Skip to main content
Glama

Container Lookup

container_lookup
Read-onlyIdempotent

ISO shipping-container specifications for 10 types (20ft/40ft standard, 40ft and 45ft high-cube, reefer, open-top and flat-rack), with optional load-fit maths. type (a slug such as "40ft-high-cube", the ISO size-type code "45G1" or the short form "40HC") gives one record; omit it to list all 10; add item dimensions to compute how many items fit. For a container NUMBER's check digit use validate; for the air-freight equivalent uld_lookup; for the cargo volume cbm_calculator / consignment_calculator. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Manufacturer-typical specs, provenance pending — confirm against the carrier's equipment guide.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "container_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoLists only: true returns full records instead of summary rows.
typeNoContainer slug ("40ft-high-cube"), ISO code or short form. Omit to list all.
limitNoLists only: rows per page.
offsetNoLists only: rows to skip (default 0).
item_quantityNoNumber of items to check against the container.
item_width_cmNoItem width in cm.
item_height_cmNoItem height in cm.
item_length_cmNoItem length in cm — provide all three item dims to get a load-fit calculation.
item_weight_kgNoWeight of ONE item, kg; caps the fit by max payload.

Output Schema

NameRequiredDescriptionDefault
okYes
as_ofYes
resultYes
statusYes
_sourceYes
editionYes
citationYes
warningsNo
confidenceYes
missing_inputsYes
blocking_errorsNo
envelope_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedOutput schema / properties / _meta
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "check_id": {
      -      "type": "string"
      -    },
      -    "edition_basis": {
      -      "type": "string"
      -    },
      -    "ids": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "pattern": {
      -          "type": "string"
      -        },
      -        "scheme": {
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "scheme",
      -        "pattern"
      -      ],
      -      "type": "object"
      -    },
      -    "receipt": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "created_at": {
      -          "type": "string"
      -        },
      -        "dataset_version": {
      -          "additionalProperties": {
      -            "type": "string"
      -          },
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "engine_version": {
      -          "type": "string"
      -        },
      -        "inputs": {},
      -        "reason": {
      -          "enum": [
      -            "key_required",
      -            "quota"
      -          ],
      -          "type": "string"
      -        },
      -        "receipt_hash": {
      -          "type": "string"
      -        },
      -        "result": {
      -          "additionalProperties": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "schema_version": {
      -          "type": "string"
      -        },
      -        "stored": {
      -          "const": false,
      -          "type": "boolean"
      -        },
      -        "tool": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "stored",
      -        "reason",
      -        "schema_version",
      -        "receipt_hash",
      -        "created_at",
      -        "tool",
      -        "inputs",
      -        "dataset_version",
      -        "engine_version",
      -        "result"
      -      ],
      -      "type": "object"
      -    },
      -    "receipt_url": {
      -      "type": "string"
      -    },
      -    "upstream": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "datasets": {
      -          "additionalProperties": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "kind": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "watched",
      -                      "checksum-only",
      -                      "manual"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "last_success": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "stale": {
      -                "type": "boolean"
      -              },
      -              "state": {
      -                "enum": [
      -                  "in_step",
      -                  "changed_upstream",
      -                  "schema_drift",
      -                  "unreachable",
      -                  "window_missed",
      -                  "unknown"
      -                ],
      -                "type": "string"
      -              },
      -              "window_days": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "kind",
      -              "last_success",
      -              "window_days",
      -              "stale"
      -            ],
      -            "type": "object"
      -          },
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "stale": {
      -          "type": "boolean"
      -        },
      -        "state": {
      -          "enum": [
      -            "in_step",
      -            "changed_upstream",
      -            "schema_drift",
      -            "unreachable",
      -            "window_missed",
      -            "unknown"
      -          ],
      -          "type": "string"
      -        },
      -        "state_read_at": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "state",
      -        "stale",
      -        "state_read_at",
      -        "datasets"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / normalized_input
      Removed value: -{
      -  "additionalProperties": {},
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / validity
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "as_of": {
      -      "type": "string"
      -    },
      -    "effective_from": {
      -      "type": "string"
      -    },
      -    "effective_to": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "as_of"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "envelope_version",
      -  "ok",
      -  "result",
      -  "confidence",
      -  "_source",
      -  "citation"
      -]New value: +[
      +  "envelope_version",
      +  "ok",
      +  "status",
      +  "missing_inputs",
      +  "edition",
      +  "as_of",
      +  "result",
      +  "confidence",
      +  "_source",
      +  "citation"
      +]
  2. Changed9 schema fields changed
    • changedInput schema / properties / full / description
      Previous value: -"Lists only: true returns full records (provenance, sources, rationale) instead of summary rows. A single-record call always returns the full record."New value: +"Lists only: true returns full records instead of summary rows."
    • changedInput schema / properties / item_height_cm / description
      Previous value: -"Load fit: item height in cm."New value: +"Item height in cm."
    • changedInput schema / properties / item_length_cm / description
      Previous value: -"Load fit: item length in cm (with item_width_cm and item_height_cm, and type)."New value: +"Item length in cm — provide all three item dims to get a load-fit calculation."
    • changedInput schema / properties / item_quantity / description
      Previous value: -"Load fit: number of items (default 1)."New value: +"Number of items to check against the container."
    • changedInput schema / properties / item_weight_kg / description
      Previous value: -"Load fit: weight of ONE item in kg (default 0 — no weight check)."New value: +"Weight of ONE item, kg; caps the fit by max payload."
    • changedInput schema / properties / item_width_cm / description
      Previous value: -"Load fit: item width in cm."New value: +"Item width in cm."
    • changedInput schema / properties / limit / description
      Previous value: -"Lists only: rows per page (default: every row for summaries; 5 with full: true)."New value: +"Lists only: rows per page."
    • changedInput schema / properties / offset / description
      Previous value: -"Lists only: rows to skip (default 0). The response gives total and next_offset."New value: +"Lists only: rows to skip (default 0)."
    • changedInput schema / properties / type / description
      Previous value: -"Container slug (e.g., \"20ft-standard\", \"40ft-high-cube\"). Omit to list all."New value: +"Container slug (\"40ft-high-cube\"), ISO code or short form. Omit to list all."
  3. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / upstream
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "datasets": {
      +      "additionalProperties": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "kind": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "watched",
      +                  "checksum-only",
      +                  "manual"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "last_success": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "stale": {
      +            "type": "boolean"
      +          },
      +          "state": {
      +            "enum": [
      +              "in_step",
      +              "changed_upstream",
      +              "schema_drift",
      +              "unreachable",
      +              "window_missed",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "window_days": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "state",
      +          "kind",
      +          "last_success",
      +          "window_days",
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "stale": {
      +      "type": "boolean"
      +    },
      +    "state": {
      +      "enum": [
      +        "in_step",
      +        "changed_upstream",
      +        "schema_drift",
      +        "unreachable",
      +        "window_missed",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "state_read_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "stale",
      +    "state_read_at",
      +    "datasets"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / ids
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "pattern": {
      +      "type": "string"
      +    },
      +    "scheme": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scheme",
      +    "pattern"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changed
    • removedOutput schema / properties / _meta / properties / receipt / properties / reason / const
      Removed value: -"key_required"
    • addedOutput schema / properties / _meta / properties / receipt / properties / reason / enum
      Added value: +[
      +  "key_required",
      +  "quota"
      +]
  6. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / receipt
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "dataset_version": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "engine_version": {
      +      "type": "string"
      +    },
      +    "inputs": {},
      +    "reason": {
      +      "const": "key_required",
      +      "type": "string"
      +    },
      +    "receipt_hash": {
      +      "type": "string"
      +    },
      +    "result": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "schema_version": {
      +      "type": "string"
      +    },
      +    "stored": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "stored",
      +    "reason",
      +    "schema_version",
      +    "receipt_hash",
      +    "created_at",
      +    "tool",
      +    "inputs",
      +    "dataset_version",
      +    "engine_version",
      +    "result"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / edition_basis
      Added value: +{
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • addedOutput schema / properties / _meta
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "check_id": {
      +      "type": "string"
      +    },
      +    "receipt_url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  9. Changed5 schema fields changed
    • addedOutput schema / properties / as_of
      Added value: +{
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / edition
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applies_from": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "may_apply_until": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "applies_from",
      +        "may_apply_until"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / envelope_version / enum
      Previous value: -[
      -  "1",
      -  "1.1"
      -]New value: +[
      +  "1",
      +  "1.1",
      +  "1.2"
      +]
    • addedOutput schema / properties / missing_inputs
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "ok",
      +    "partial",
      +    "not_found",
      +    "unsupported",
      +    "ambiguous"
      +  ],
      +  "type": "string"
      +}
  10. Changed2 schema fields changed
    • removedOutput schema / properties / validity / properties / effective_to / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / validity / properties / effective_to / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  11. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  12. Changed3 schema fields changed
    • addedInput schema / properties / full
      Added value: +{
      +  "description": "Lists only: true returns full records (provenance, sources, rationale) instead of summary rows. A single-record call always returns the full record.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Lists only: rows per page (default: every row for summaries; 5 with full: true).",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Lists only: rows to skip (default 0). The response gives total and next_offset.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  13. Changed5 schema fields changed
    • addedInput schema / properties / item_height_cm
      Added value: +{
      +  "description": "Load fit: item height in cm.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / item_length_cm
      Added value: +{
      +  "description": "Load fit: item length in cm (with item_width_cm and item_height_cm, and type).",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / item_quantity
      Added value: +{
      +  "description": "Load fit: number of items (default 1).",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / item_weight_kg
      Added value: +{
      +  "description": "Load fit: weight of ONE item in kg (default 0 — no weight check).",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / item_width_cm
      Added value: +{
      +  "description": "Load fit: item width in cm.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
  14. Changed5 schema fields changed
    • addedOutput schema / properties / _source / properties / authority_current_edition
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _source / properties / checked_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _source / properties / dataset_edition
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / envelope_version / const
      Removed value: -"1"
    • addedOutput schema / properties / envelope_version / enum
      Added value: +[
      +  "1",
      +  "1.1"
      +]
  15. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "_source": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "checked": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "provenance_status": {
      +          "enum": [
      +            "verified",
      +            "pending-verification",
      +            "computed",
      +            "live"
      +          ],
      +          "type": "string"
      +        },
      +        "source_url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "checked",
      +        "provenance_status"
      +      ],
      +      "type": "object"
      +    },
      +    "blocking_errors": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "recovery": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "action": {
      +                "type": "string"
      +              },
      +              "params": {
      +                "additionalProperties": {},
      +                "propertyNames": {
      +                  "type": "string"
      +                },
      +                "type": "object"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "action"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "recovery"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "citation": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "qualifier": {
      +          "type": "string"
      +        },
      +        "text": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "confidence": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "basis": {
      +          "enum": [
      +            "deterministic",
      +            "provenance",
      +            "match_quality",
      +            "freshness"
      +          ],
      +          "type": "string"
      +        },
      +        "level": {
      +          "enum": [
      +            "high",
      +            "medium",
      +            "low"
      +          ],
      +          "type": "string"
      +        },
      +        "score": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "level",
      +        "basis"
      +      ],
      +      "type": "object"
      +    },
      +    "envelope_version": {
      +      "const": "1",
      +      "type": "string"
      +    },
      +    "normalized_input": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "result": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "validity": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "as_of": {
      +          "type": "string"
      +        },
      +        "effective_from": {
      +          "type": "string"
      +        },
      +        "effective_to": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of"
      +      ],
      +      "type": "object"
      +    },
      +    "warnings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "envelope_version",
      +    "ok",
      +    "result",
      +    "confidence",
      +    "_source",
      +    "citation"
      +  ],
      +  "type": "object"
      +}
  16. Changed1 schema field changed
    • addedInput schema / properties / type / minLength
      Added value: +2
  17. 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 read-only, idempotent, non-destructive, closed-world, so the safety profile needs no restating; instead the description adds genuinely new behavioral facts — a rate limit whose error carries reset_at in UTC, and a provenance warning that specs are manufacturer-typical and should be confirmed against the carrier's equipment guide.

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-loaded with the core capability, then formats, then alternatives, then caveats — a sensible ordering with no filler sentences. The opening sentence is dense with parenthetical type enumerations, which costs some scannability but each clause carries information.

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?

For a nine-parameter read tool with an output schema and full annotation coverage, nothing an agent needs is missing: selection modes, accepted identifier formats, load-fit inputs, alternative tools, rate-limit behavior, and a data-reliability caveat are all present.

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 extra by documenting accepted formats for type beyond the schema's single example — slug, ISO size-type code like "45G1", and short form like "40HC" — plus the rule that all three item dimensions are needed for a fit calculation. It does not explain how full/limit/offset interact with the list mode beyond what the schema already says.

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 resource and scope: ISO container specs for 10 named types, with an optional load-fit extension. The three operating modes (single record by type, list all, compute fit) are enumerated, so an agent can distinguish this from validate or uld_lookup 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 Guidelines5/5

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

Gives explicit routing: use validate for a container number's check digit, uld_lookup for air freight, cbm_calculator/consignment_calculator for cargo volume. It also states the in-tool branch conditions (omit type to list, add item dims to compute fit), leaving nothing to inference.

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.