Skip to main content
Glama

CutOptim Engine

Nest true shapes

optimize_nest

Metered: one Engine API call (needs an API key; not available with the demo key). Nest free-form polygon parts on sheets. True-shape (irregular / polygon) nesting. Pack ARBITRARY POLYGONS onto fixed sheets, letting parts interlock into each other's concave pockets — an L-bracket, a gasket, a laser-cut profile. This is a different class from the rectangular modes: a part is an outline (polygon, optional interior holes), not a width×height, so a bounding-box packer's notch-air is reclaimed. On a representative 272-part job it uses 6 sheets where the same parts by bounding box need 9 (−33 % material).

Two things the rectangular API cannot express come for free here: per-sheet EXCLUSION ZONES (stock[].exclusions — a defect, a clamp footprint, a pre-printed area; a quality-0 zone is a no-go region for any part), and true-shape holes. Material partition (material) and the opaque meta passthrough work exactly as on the other modes.

⚠️ density is the placed POLYGON area over used sheet area — the honest fill, with concave pockets counted as empty. It is NOT comparable to a rectangular packer's yieldPct (which counts each bounding box as solid and so reads higher for a worse result); the cross-comparable metric is sheetCount on the same parts.

A placed part carries the rigid transform (rotation in degrees, then x/y translation), NOT a re-emitted polygon: your input outline plus that transform reconstructs the placement exactly. Deterministic (a pinned seed); set options.seed to reproduce a layout.

Engines: lbf (default) is synchronous and instant. Besides its own pass it tries the parts restricted to the right angles they allow, and their bounding boxes packed by an exact rectangle packer — which finds grids a sampling search misses (three 500-wide parts on a 1500-wide sheet at zero spacing) — and keeps whichever ranks best; on a tie, the plan that fills its sheets front to back, then the one with fewer parts off the right angles. max is ASYNCHRONOUS: the call answers 202 with a jobId, and you poll GET /v1/jobs/{id} for the result — the same response shape, with engine: "max". It runs the lbf pass first and then a time-budgeted search (options.timeBudgetMs, default 60 s, 10–180 s) that fills sheets one at a time looking for a layout with FEWER sheets; it never returns more sheets than lbf would — nor a plan that ranks worse by the sheet-size ranking below — and says in warnings when it kept the lbf layout. Several sheet sizes per material and respectStock are modelled; a polygon sheet or exclusions (which its strip search cannot model) are served by the lbf pass inside the job, with a warning — never refused. sparrow is a deprecated alias of max.

Sheet sizes and cost. With two or more stock rows for a material, both engines compare arrangements (your order, each row alone, cheapest-first) and then re-nest each sheet — the least-filled first — onto the cheaper or smaller rows, so a plan may MIX sizes (e.g. two large sheets and a small last one). Ranking: most must-cut (priority) parts placed → most parts placed → (with minimizeCost) lowest total price → least total sheet area → fewest sheets. sheets[].stock and stockUsage[] say which row each sheet came from. Used area. sheets[].usedWidth / usedHeight are the farthest extent of any placed part from the sheet origin (the corner the parts are packed into), usedArea their product, and stockUsage[].usedArea the sum per row — the numbers an ERP needs to charge a partial sheet (full sheet, a horizontal or vertical cut, or the bounding box; the charging rule stays yours). Both engines compact the least-filled sheet of each material: its parts are re-nested on the same sheet with rotation SUBSETS of what each part allows ({0,180}, {0,90,180,270}, a single orientation — never a new angle) and the variant with the smallest used area is kept; with max that sheet is then also re-packed by the search itself, along the sheet's height and (on a one-sheet plan) along its width, and the tighter layout is kept under the same rule. Sheet count, sizes, price and placed parts never change. options.compact: false returns the uncompacted layout, and options.compactFor (box · horizontal · vertical) picks the measure to minimise when you charge a full-width or full-height strip. metrics.cutLength / sheets[].cutLength is the summed perimeter of the placed parts' outlines and holes; pierces counts one per closed contour (no common-line cutting, lead-ins or micro-joints — your CAM adds those).

Parts from CAD files. A part may carry source — an SVG or DXF document — instead of polygon coordinates; the server reads the outline (and its holes) out of the file with the same parser the CutOptim app uses. The file replaces ONLY the geometry, and the response then carries an imported block saying what the files contributed. One file describes ONE part; POST /v1/import/nest splits a multi-part drawing first. Nothing is stored: the bytes are parsed in memory and gone with the response. Because a drawing is far larger than a JSON parts list, this path accepts a 10 MB body (the rectangular endpoints keep 1 MB), with per-file and per-request character caps on source.content.

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": {
      "parts": "<parts>",
      "stock": "<stock>"
    },
    "name": "optimize_nest"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsYesOne or more parts to nest, one NestPart per row.
stockYesOne or more sheet types, one NestStock per row.
engineNo`lbf` (default) is single-pass, synchronous and instant. `max` is ASYNCHRONOUS: 202 + poll `GET /v1/jobs/{id}`; it runs `lbf` first, then a time-budgeted search that fills sheets one at a time looking for FEWER sheets, and never returns more than `lbf`, nor a plan that ranks worse (price with `minimizeCost`, otherwise sheet area). It accepts several sheet sizes per material and `respectStock`; a `polygon` sheet or exclusion zones are served by `lbf` inside the job, with a warning. `sparrow` is a deprecated alias of `max`.lbf
includeNoAdditive inline export of the achieved layout. `svg` returns a self-contained, styled `<svg>` string (one titled band per sheet, parts drawn as filled polygons with holes, exclusion zones hatched); `dxf` returns an R12 document (closed `POLYLINE`/`VERTEX` outlines on STOCK/PARTS/HOLES/ZONES layers, part names on LABELS). Both are unit-agnostic, exactly like the request coordinates. The geometry in `sheets[]` is returned either way.
optionsNoSolve options. All optional.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / stock / items / properties / maxLength
      Added value: +{
      +  "description": "With `roll` only: the longest the marker may be (at most 200000). Parts that do not fit within it are returned in `unplaced` — a roll never becomes a second sheet. Omit it and the length is unbounded up to 200000.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 200000,
      +  "type": "number"
      +}
    • addedInput schema / properties / stock / items / properties / roll
      Added value: +{
      +  "description": "Marker mode: this row is a ROLL of width `w` and free length (fabric, leather, film, any roll good). Give `w` only — no `h`, `polygon` or `exclusions` — and make it the only stock row. The answer is ONE sheet `w` wide whose `h` is the shortest length found (also `metrics.length`), edge gap included at both ends. Both engines: `lbf` answers synchronously; `max` (async) starts from that marker and spends `options.timeBudgetMs` on a strip search that may shorten it, never lengthen it.",
      +  "type": "boolean"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "contractVersion": {
      -        "type": "string"
      -      },
      -      "deterministic": {
      -        "type": "boolean"
      -      },
      -      "dxf": {
      -        "type": "string"
      -      },
      -      "engine": {
      -        "enum": [
      -          "lbf",
      -          "max"
      -        ],
      -        "type": "string"
      -      },
      -      "engineVersion": {
      -        "type": "string"
      -      },
      -      "imported": {
      -        "properties": {
      -          "parts": {
      -            "type": "integer"
      -          },
      -          "units": {
      -            "items": {
      -              "enum": [
      -                "mm",
      -                "in"
      -              ],
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "vertices": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "parts",
      -          "vertices",
      -          "units"
      -        ],
      -        "type": "object"
      -      },
      -      "materials": {
      -        "items": {
      -          "properties": {
      -            "density": {
      -              "type": "number"
      -            },
      -            "material": {
      -              "type": "string"
      -            },
      -            "placed": {
      -              "type": "integer"
      -            },
      -            "sheetCount": {
      -              "type": "integer"
      -            },
      -            "total": {
      -              "type": "integer"
      -            },
      -            "totalPrice": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "material",
      -            "sheetCount",
      -            "density",
      -            "placed",
      -            "total",
      -            "totalPrice"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "metrics": {
      -        "properties": {
      -          "cutLength": {
      -            "type": "number"
      -          },
      -          "density": {
      -            "type": "number"
      -          },
      -          "pierces": {
      -            "type": "integer"
      -          },
      -          "placed": {
      -            "type": "integer"
      -          },
      -          "sheetCount": {
      -            "type": "integer"
      -          },
      -          "total": {
      -            "type": "integer"
      -          },
      -          "totalPrice": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "sheetCount",
      -          "density",
      -          "placed",
      -          "total",
      -          "totalPrice",
      -          "cutLength",
      -          "pierces"
      -        ],
      -        "type": "object"
      -      },
      -      "sheets": {
      -        "items": {
      -          "properties": {
      -            "cutLength": {
      -              "type": "number"
      -            },
      -            "density": {
      -              "type": "number"
      -            },
      -            "exclusions": {
      -              "items": {
      -                "properties": {
      -                  "polygon": {
      -                    "items": {
      -                      "items": {
      -                        "type": "number"
      -                      },
      -                      "maxItems": 2,
      -                      "minItems": 2,
      -                      "type": "array"
      -                    },
      -                    "minItems": 3,
      -                    "type": "array"
      -                  },
      -                  "quality": {
      -                    "default": 0,
      -                    "minimum": 0,
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "polygon"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "h": {
      -              "type": "number"
      -            },
      -            "material": {
      -              "type": "string"
      -            },
      -            "meta": {
      -              "type": "object"
      -            },
      -            "parts": {
      -              "items": {
      -                "properties": {
      -                  "material": {
      -                    "type": "string"
      -                  },
      -                  "meta": {
      -                    "type": "object"
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "rotation": {
      -                    "type": "number"
      -                  },
      -                  "sheet": {
      -                    "type": "integer"
      -                  },
      -                  "x": {
      -                    "type": "number"
      -                  },
      -                  "y": {
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "sheet",
      -                  "x",
      -                  "y",
      -                  "rotation"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "pierces": {
      -              "type": "integer"
      -            },
      -            "polygon": {
      -              "items": {
      -                "items": {
      -                  "type": "number"
      -                },
      -                "maxItems": 2,
      -                "minItems": 2,
      -                "type": "array"
      -              },
      -              "minItems": 3,
      -              "type": "array"
      -            },
      -            "price": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "stock": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "usedArea": {
      -              "type": "number"
      -            },
      -            "usedHeight": {
      -              "type": "number"
      -            },
      -            "usedWidth": {
      -              "type": "number"
      -            },
      -            "w": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "stock",
      -            "price",
      -            "density",
      -            "cutLength",
      -            "pierces",
      -            "usedWidth",
      -            "usedHeight",
      -            "usedArea",
      -            "parts"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "stockUsage": {
      -        "items": {
      -          "properties": {
      -            "density": {
      -              "type": "number"
      -            },
      -            "h": {
      -              "type": "number"
      -            },
      -            "material": {
      -              "type": "string"
      -            },
      -            "sheetCount": {
      -              "type": "integer"
      -            },
      -            "stock": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "totalPrice": {
      -              "type": "number"
      -            },
      -            "usedArea": {
      -              "type": "number"
      -            },
      -            "w": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "stock",
      -            "sheetCount",
      -            "totalPrice",
      -            "density",
      -            "usedArea"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "svg": {
      -        "type": "string"
      -      },
      -      "timing": {
      -        "properties": {
      -          "solveMs": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "solveMs"
      -        ],
      -        "type": "object"
      -      },
      -      "unmatchedMaterials": {
      -        "items": {
      -          "properties": {
      -            "material": {
      -              "type": "string"
      -            },
      -            "parts": {
      -              "items": {
      -                "properties": {
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "qty": {
      -                    "type": "integer"
      -                  }
      -                },
      -                "required": [
      -                  "name",
      -                  "qty"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "material",
      -            "parts"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "unplaced": {
      -        "items": {
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "qty": {
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "qty"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "warnings": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "engine",
      -      "engineVersion",
      -      "contractVersion",
      -      "deterministic",
      -      "sheets",
      -      "metrics",
      -      "stockUsage",
      -      "unplaced",
      -      "warnings",
      -      "timing"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "engine": {
      -        "enum": [
      -          "max"
      -        ],
      -        "type": "string"
      -      },
      -      "jobId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "mode": {
      -        "enum": [
      -          "nest"
      -        ],
      -        "type": "string"
      -      },
      -      "pollAfterMs": {
      -        "type": "integer"
      -      },
      -      "quota": {
      -        "properties": {
      -          "limit": {
      -            "type": "integer"
      -          },
      -          "reserved": {
      -            "type": "integer"
      -          },
      -          "used": {
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "status": {
      -        "enum": [
      -          "queued"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "jobId",
      -      "status",
      -      "mode",
      -      "engine",
      -      "pollAfterMs"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "contractVersion": {
      +        "type": "string"
      +      },
      +      "deterministic": {
      +        "type": "boolean"
      +      },
      +      "dxf": {
      +        "type": "string"
      +      },
      +      "engine": {
      +        "enum": [
      +          "lbf",
      +          "max"
      +        ],
      +        "type": "string"
      +      },
      +      "engineVersion": {
      +        "type": "string"
      +      },
      +      "imported": {
      +        "properties": {
      +          "parts": {
      +            "type": "integer"
      +          },
      +          "units": {
      +            "items": {
      +              "enum": [
      +                "mm",
      +                "in"
      +              ],
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "vertices": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "parts",
      +          "vertices",
      +          "units"
      +        ],
      +        "type": "object"
      +      },
      +      "materials": {
      +        "items": {
      +          "properties": {
      +            "density": {
      +              "type": "number"
      +            },
      +            "material": {
      +              "type": "string"
      +            },
      +            "placed": {
      +              "type": "integer"
      +            },
      +            "sheetCount": {
      +              "type": "integer"
      +            },
      +            "total": {
      +              "type": "integer"
      +            },
      +            "totalPrice": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "material",
      +            "sheetCount",
      +            "density",
      +            "placed",
      +            "total",
      +            "totalPrice"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "metrics": {
      +        "properties": {
      +          "cutLength": {
      +            "type": "number"
      +          },
      +          "density": {
      +            "type": "number"
      +          },
      +          "length": {
      +            "type": "number"
      +          },
      +          "pierces": {
      +            "type": "integer"
      +          },
      +          "placed": {
      +            "type": "integer"
      +          },
      +          "sheetCount": {
      +            "type": "integer"
      +          },
      +          "total": {
      +            "type": "integer"
      +          },
      +          "totalPrice": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "sheetCount",
      +          "density",
      +          "placed",
      +          "total",
      +          "totalPrice",
      +          "cutLength",
      +          "pierces"
      +        ],
      +        "type": "object"
      +      },
      +      "sheets": {
      +        "items": {
      +          "properties": {
      +            "cutLength": {
      +              "type": "number"
      +            },
      +            "density": {
      +              "type": "number"
      +            },
      +            "exclusions": {
      +              "items": {
      +                "properties": {
      +                  "polygon": {
      +                    "items": {
      +                      "items": {
      +                        "type": "number"
      +                      },
      +                      "maxItems": 2,
      +                      "minItems": 2,
      +                      "type": "array"
      +                    },
      +                    "minItems": 3,
      +                    "type": "array"
      +                  },
      +                  "quality": {
      +                    "default": 0,
      +                    "minimum": 0,
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "polygon"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "h": {
      +              "type": "number"
      +            },
      +            "material": {
      +              "type": "string"
      +            },
      +            "meta": {
      +              "type": "object"
      +            },
      +            "parts": {
      +              "items": {
      +                "properties": {
      +                  "material": {
      +                    "type": "string"
      +                  },
      +                  "meta": {
      +                    "type": "object"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "rotation": {
      +                    "type": "number"
      +                  },
      +                  "sheet": {
      +                    "type": "integer"
      +                  },
      +                  "x": {
      +                    "type": "number"
      +                  },
      +                  "y": {
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "sheet",
      +                  "x",
      +                  "y",
      +                  "rotation"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "pierces": {
      +              "type": "integer"
      +            },
      +            "polygon": {
      +              "items": {
      +                "items": {
      +                  "type": "number"
      +                },
      +                "maxItems": 2,
      +                "minItems": 2,
      +                "type": "array"
      +              },
      +              "minItems": 3,
      +              "type": "array"
      +            },
      +            "price": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "stock": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "usedArea": {
      +              "type": "number"
      +            },
      +            "usedHeight": {
      +              "type": "number"
      +            },
      +            "usedWidth": {
      +              "type": "number"
      +            },
      +            "w": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "stock",
      +            "price",
      +            "density",
      +            "cutLength",
      +            "pierces",
      +            "usedWidth",
      +            "usedHeight",
      +            "usedArea",
      +            "parts"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "stockUsage": {
      +        "items": {
      +          "properties": {
      +            "density": {
      +              "type": "number"
      +            },
      +            "h": {
      +              "type": "number"
      +            },
      +            "material": {
      +              "type": "string"
      +            },
      +            "sheetCount": {
      +              "type": "integer"
      +            },
      +            "stock": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "totalPrice": {
      +              "type": "number"
      +            },
      +            "usedArea": {
      +              "type": "number"
      +            },
      +            "w": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "stock",
      +            "sheetCount",
      +            "totalPrice",
      +            "density",
      +            "usedArea"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "svg": {
      +        "type": "string"
      +      },
      +      "timing": {
      +        "properties": {
      +          "solveMs": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "solveMs"
      +        ],
      +        "type": "object"
      +      },
      +      "unmatchedMaterials": {
      +        "items": {
      +          "properties": {
      +            "material": {
      +              "type": "string"
      +            },
      +            "parts": {
      +              "items": {
      +                "properties": {
      +                  "minSheet": {
      +                    "properties": {
      +                      "h": {
      +                        "type": "number"
      +                      },
      +                      "rotation": {
      +                        "type": "number"
      +                      },
      +                      "w": {
      +                        "type": "number"
      +                      }
      +                    },
      +                    "required": [
      +                      "w",
      +                      "h",
      +                      "rotation"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "qty": {
      +                    "type": "integer"
      +                  },
      +                  "reason": {
      +                    "enum": [
      +                      "too_large",
      +                      "no_room"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "name",
      +                  "qty"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "material",
      +            "parts"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "unplaced": {
      +        "items": {
      +          "properties": {
      +            "minSheet": {
      +              "properties": {
      +                "h": {
      +                  "type": "number"
      +                },
      +                "rotation": {
      +                  "type": "number"
      +                },
      +                "w": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "w",
      +                "h",
      +                "rotation"
      +              ],
      +              "type": "object"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "qty": {
      +              "type": "integer"
      +            },
      +            "reason": {
      +              "enum": [
      +                "too_large",
      +                "no_room"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "qty"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "warnings": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "engine",
      +      "engineVersion",
      +      "contractVersion",
      +      "deterministic",
      +      "sheets",
      +      "metrics",
      +      "stockUsage",
      +      "unplaced",
      +      "warnings",
      +      "timing"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "engine": {
      +        "enum": [
      +          "max"
      +        ],
      +        "type": "string"
      +      },
      +      "jobId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "mode": {
      +        "enum": [
      +          "nest"
      +        ],
      +        "type": "string"
      +      },
      +      "pollAfterMs": {
      +        "type": "integer"
      +      },
      +      "quota": {
      +        "properties": {
      +          "limit": {
      +            "type": "integer"
      +          },
      +          "reserved": {
      +            "type": "integer"
      +          },
      +          "used": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "status": {
      +        "enum": [
      +          "queued"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "jobId",
      +      "status",
      +      "mode",
      +      "engine",
      +      "pollAfterMs"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond annotations that only declare non-read-only, non-idempotent, open-world behavior, the description discloses metering (one Engine API call, API key required, demo key excluded), asynchronous 202/jobId polling, deterministic seeded layouts, warning behavior when `max` keeps the `lbf` layout, and that source-file bytes are parsed in memory and never stored.

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?

The text is long but organized with front-loaded purpose and bold section headers for engines, sheet sizing, and CAD-file parts. It earns most of its length through genuinely complex behavior, though some output-metric explanation such as `density` versus `yieldPct` could be leaned on the output schema instead.

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 highly complex nesting tool with nested objects, an output schema, and non-trivial asynchronous behavior, the description covers purpose, engine choice, metering, determinism, warnings, compaction, stock sizing, and CAD-source handling. An agent has enough context to select and invoke it correctly.

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 description coverage is 100%, so the baseline is 3, but the description adds meaningful cross-parameter semantics: how `engine`, `timeBudgetMs`, `compact`, `compactFor`, `minimizeCost`, `respectStock`, and `edgeClearance` interact, including ranking rules and when the mixed-size re-nest applies. Some of this repeats the already detailed schema, which keeps it from a 5.

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?

The opening states a specific verb and resource: 'Nest free-form polygon parts on sheets. True-shape (irregular / polygon) nesting.' It explicitly distinguishes this from rectangular modes and explains the key difference: a part is an outline with optional holes rather than a width×height box.

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?

The description gives explicit selection guidance: use true-shape nesting for polygon parts whose concave pockets should interlock, use rectangular modes otherwise; `lbf` is synchronous and instant, `max` is asynchronous for a time-budgeted search; `sparrow` is a deprecated alias. It also tells the caller when the demo key is insufficient and when `max` falls back to `lbf` with a warning.

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.