Skip to main content
Glama

Get the warehouse, its closures and delivery days

get_warehouse
Read-onlyIdempotent

The importer's warehouse where containers are delivered: name, address, country, the weekdays it is open (open_days), the public-holiday region its calendar uses (effective_holiday_region), the closures that end today or later, next to end first (closures, with closures_has_more when there are more than are shown; open: true means it works that day although the calendar says shut) and the next 14 days (delivery_days), each with usable and the reason: open, closure_open, closure, weekday, warehouse_holiday or port_holiday. Use it for "is the warehouse open on the 26th" or "why is the collect-by date Tuesday and not Monday" (a shipment's free_time.collect_by already skips the unusable days). Opening hours are not recorded. Port holidays are only counted when you pass shipment_id, the shipment whose discharge port matters. Without warehouse_id it answers for the warehouse of the shipment you pass in shipment_id (the one its collect-by date is counted for), else for the default warehouse; an organization with none set gets an error.

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": "get_warehouse"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idNoA shipment id such as "shp_123", as returned by search_shipments.
warehouse_idNoA warehouse id such as "whs_12". Omit for the shipment's warehouse, or the default one when there is no shipment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / warehouse_id / description
      Previous value: -"A warehouse id such as \"whs_12\". Omit for the default warehouse."New value: +"A warehouse id such as \"whs_12\". Omit for the shipment's warehouse, or the default one when there is no shipment."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent safety, and the description adds real behavioral context on top: closures are ordered soonest-ending first, closures_has_more flags truncation, open:true overrides a calendar closure, port holidays are only counted when shipment_id is passed, and opening hours are not recorded at all. These are non-obvious semantics an agent could not infer from the schema or annotations.

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 resource and every clause carries information, but the return-field enumeration is one long parenthetical-heavy sentence that takes effort to parse. Splitting the closures and delivery_days explanation into separate sentences would improve scannability without losing content.

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 no output schema, the description carries the full burden of describing return values and does so field by field, including the enum-like reason values and the usable flag. It also covers parameter interaction, ordering, truncation, and failure modes — nothing an agent needs to call this 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, but the description goes further by explaining what shipment_id actually changes — it enables port-holiday counting for that shipment's discharge port and selects which warehouse is resolved. The organization-has-no-warehouse error path is also parameter-driven context not 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 resource (the importer's warehouse) and enumerates exactly what comes back: name, address, country, open_days, effective_holiday_region, closures, delivery_days. The sibling closures tools (add_warehouse_closure/remove_warehouse_closure) are implicitly distinguished by this being the read/query counterpart with calendar reasoning.

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 concrete selecting questions ("is the warehouse open on the 26th", "why is the collect-by date Tuesday and not Monday") and explicitly routes the agent to a shipment's free_time.collect_by when the question is about a date it already skipped. Also spells out the warehouse_id/shipment_id resolution order and the default-warehouse fallback plus the no-warehouse error.

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.

Resources