Skip to main content
Glama

Container Loading Calculator

Container loading plan

container_loading

Work out how many flat-pack units or panels fit in one 20ft (20GP) or 40ft high cube (40HQ) container. Returns units per layer, layers that fit the height, units limited by volume and by payload, the binding constraint, and the volume/payload utilisation. Use the packed size and weight of ONE unit. It does not estimate: if a dimension or the weight is missing it returns what is missing instead of a number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
containerYesContainer type: 20gp (20ft general purpose) or 40hq (40ft high cube).
maxLayersNoOptional stacking limit: the most layers you are willing to stack. Omit or send 0 for no cap.
unitWidthMmYesPacked width of one unit, in millimetres.
unitHeightMmYesPacked height of one unit, in millimetres.
unitLengthMmYesPacked length of one unit, in millimetres.
unitWeightKgYesWeight of one packed unit, in kilograms.
allowRotationNoOptional. When true, the tool also tries each unit rotated 90 degrees and keeps the better units-per-layer. Default false, matching the web calculator.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it enumerates the returned quantities (units per layer, layers fitting height, volume-limited and payload-limited counts, binding constraint, utilisation) and discloses the fail-soft behavior when inputs are missing. It does not state assumptions such as weight distribution, palletisation, or whether the unit is stackable, which leaves some behavioral surface uncovered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core question, then the return contents, then the input rule and failure mode. No filler, no repetition of the title, and each sentence carries distinct information.

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?

There is no output schema, so the description must describe returns – and it does so item by item, which is exactly what an agent needs. The only gap is that the optional parameters (maxLayers, allowRotation) are never mentioned in prose, though the schema covers them fully at 100% coverage.

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 description coverage is 100%, so the schema already documents all seven parameters including maxLayers and allowRotation. The description adds one genuinely useful clarification – the dimensions/weight are the packed size of a single unit – but says nothing about the optional layer cap or rotation flag, so it stays at the baseline for fully-covered schemas.

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 (work out how many fit) plus the exact resource (flat-pack units or panels in a 20GP or 40HQ container), and scopes the calculation to a single unit's packed size. There are no siblings to distinguish from, and the purpose is unambiguous enough that an agent knows exactly what question this tool answers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives a concrete input precondition – 'Use the packed size and weight of ONE unit' – which prevents the common mistake of passing total shipment dimensions. It also defines the negative case (missing dimension/weight yields a report of what is missing, not a number). No alternatives or exclusions are named, but none exist for this tool.

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.