Skip to main content
Glama

MOACUT 2D Nesting

Calculate a sheet cutting layout

calculate_nesting
Read-onlyIdempotent

Lay out rectangular parts on rectangular sheets and return how many sheets are needed, the scrap percentage, the most usable offcut (a big, roughly square piece rather than a long strip), each part's position on each sheet, and a link that opens the job in MOACUT. Sizes in millimetres. Free limit: 10 part types and 30 pieces in total. Sheet counts are correct only for the whole job in one call.

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": {
      "sheetWidth": "<sheetWidth>",
      "sheetHeight": "<sheetHeight>",
      "parts": "<parts>"
    },
    "name": "calculate_nesting"
  }
}

Input Schema

NameRequiredDescriptionDefault
kerfNoCut width between parts in mm (default 3)
partsYesPart types to cut
languageNoLanguage of the MOACUT page the link opens (default en)
edgeMarginNoClear margin around each sheet in mm (default 10)
sheetWidthYesSheet width in mm, e.g. 2440
sheetHeightYesSheet height in mm, e.g. 1220
allowRotationNoAllow parts to turn 90 degrees. Set false when the grain direction matters (default true)

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?

Annotations already cover read-only, idempotent and non-destructive semantics, so the description's job is to add operational caveats, which it does: a hard quota (10 part types / 30 pieces) and a correctness condition about batching the entire job in a single call. It does not say what happens on quota breach or how the MOACUT link is scoped, but the key behavioural traps are disclosed.

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?

It front-loads the action and then lists outcomes in a single dense sentence, with operational constraints following. Four sentences carry a lot of distinct information, though the output enumeration is long enough that it could be tightened.

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 burden of describing return values and does so explicitly, including the non-obvious 'big roughly square offcut rather than a long strip' interpretation. Units, quotas and the whole-job correctness condition round out what an agent needs before calling.

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 every parameter (kerf, edgeMargin, allowRotation, language, parts) is already documented in the schema, including the grain-direction rationale for allowRotation. The description's 'sizes in millimetres' adds marginal reinforcement but no new parameter semantics; 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?

The description names a specific action (lay out rectangular parts on rectangular sheets) plus its resource and enumerates the exact outputs: sheet count, scrap percentage, offcut, per-part positions and a MOACUT link. An agent knows precisely what it gets back without opening a schema.

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?

It gives concrete operating context: free tier limits of 10 part types and 30 pieces, and the constraint that sheet counts are only correct when the whole job goes in one call. There is no explicit 'do not use for X' clause, but with no sibling tools that is not a meaningful gap.

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