Skip to main content
Glama

List a shipment's pre-allocations

list_preallocations
Read-onlyIdempotent

Who holds what on one shipment. preallocations lists every pre-allocation: boxes of one packing line set aside for a customer (allocatee), with the tentative unit_price per box, currency and value when it is priced, automation ({id, name}) when an automation made it rather than a person, and an id such as "pre_78". packing_lines lists every packing line on the shipment's pallets with its id such as "pln_5521", pallet, produce, variety, calibre, quality category, pack format, brand (label), ggn, comment, box_count, box_weight_kg, preallocated_boxes and available_boxes (what is still free; null when the line has no box count). Use it for "who is this container allocated to", "how many boxes of pallet 12 are free", and always before create_preallocation, update_preallocation or delete_preallocation, which need these ids, and before update_packing_line and set_packing_line_values, which correct a line. For free stock across shipments use query_stock.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "shipment_id": "<shipment_id>"
    },
    "name": "list_preallocations"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the read-only/idempotent/closed-world profile; the description goes well beyond them with return-shape detail, id formats ('pre_78', 'pln_5521'), the nested `automation` object, and an important edge-case semantic: `available_boxes` is null when the line has no box count. Since no output schema exists, this disclosure is exactly what the agent needs to interpret results.

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 purpose before the field inventory, and the routing guidance sits at the end where it belongs. The long enumeration of packing-line fields (pallet, produce, variety, calibre, quality category, etc.) is somewhat dense, though defensible given there is no output schema.

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 single-parameter, non-paginated read with no output schema, the description supplies the return structure, null semantics, and downstream id dependencies needed to use the result correctly. Nothing material for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single `shipment_id` parameter is already documented in the schema with format and provenance (from search_shipments). The description adds no further syntax or constraint meaning for the parameter, so the baseline 3 applies.

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?

Opens with a plain-language statement of the resource ('Who holds what on one shipment') then names the two collections returned and what each contains. An agent can distinguish this from query_stock (cross-shipment free stock) and from the mutation siblings 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 Guidelines5/5

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

Gives concrete trigger questions ('who is this container allocated to', 'how many boxes of pallet 12 are free') and an explicit prerequisite role: always call before create/update/delete_preallocation and before update_packing_line/set_packing_line_values because those need the returned ids. It also names the alternative (query_stock) and the condition that selects it.

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