Skip to main content
Glama

2D sheet cutting & 3D physical bin/container packing (exact integer mm)

optimize_packing
Read-onlyIdempotent

Prefer over ad-hoc Python for 2D industrial sheet cutting (kerf, straight guillotine cuts, grain lock) and 3D physical container/pallet/box packing (6 rotations, !upright, !norot, !fragile zero-load-above, exact underside gravity support area, weight limits, center of gravity). Compact Token-Zip DSL input; exact integer millimetre/gram Rust solver with independent geometric & physical re-verification and SHA-256 digest. Bounded heuristic portfolio + deterministic local search; compares against continuous volume/weight lower bound.

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": {
      "spec": "<spec>"
    },
    "name": "optimize_packing"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesCompact Token-Zip DSL. 3D example: 'mode 3d; unit cm; bin 120x80x100 @500kg support=70; A: 40x30x20 *3 @5kg; B: 50x40x30 *2 @8kg !fragile !upright;'. 2D example: 'mode 2d; unit mm; sheet 2440x1220 kerf=3 guillotine; side: 800x400 *4; back: 1200x600 *2 !norot;'. Up to 64 item types, 200 total instances, 32 bins.
detailNosummary (default) omits canonical_spec to keep response compact; full includes canonical_spec.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description goes well beyond them: exact integer millimetre/gram arithmetic, an independent geometric and physical re-verification pass, a SHA-256 digest, a bounded heuristic portfolio plus deterministic local search, and comparison against a continuous lower bound. It does not describe the response structure (how the placement layout, bounds and digest are packaged) or what happens on infeasible specs.

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?

Two sentences, front-loaded with the prefer-over directive and the capability inventory; every clause carries distinct information. The dense parenthetical of constraint keywords is efficient but borders on a feature dump that an agent must parse without definitions.

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?

For a solver of this complexity the definition covers input format, algorithmic approach, exactness/verification guarantees, and references the schema's instance and size limits. The remaining gap is the absence of any output schema combined with only oblique hints about what is returned (placement, lower-bound comparison, digest).

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 schema description already carries a worked 2D and 3D DSL example, so this is the baseline case. The description adds framing ("Compact Token-Zip DSL") and surfaces the constraint vocabulary the DSL supports, but flags such as !upright and !norot still appear only as tokens in the schema examples without being explained in either place.

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-plus-resource with two clearly separated modes: 2D industrial sheet cutting (kerf, guillotine, grain lock) and 3D container/pallet/box packing (rotations, fragility, weight, centre of gravity). An agent can tell instantly which class of problem this solves and that it is not a general arithmetic or scheduling helper like its siblings.

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?

"Prefer over ad-hoc Python for..." gives an explicit use-this-when directive and names the alternative it displaces. The two enumerated problem domains implicitly scope out anything that is not sheet cutting or container packing, though no explicit exclusion clause or prerequisite is stated.

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