Skip to main content
Glama

sheet_refold

Fold a flat pattern back up and verify it reproduces the original part, exposing wrong allowances, angles, or bend directions by reporting disagreement in volume and bounding box.

Instructions

Fold a flat pattern back up and check it reproduces the part — the other half of the unfold gate.

This does NOT replay the feature model. It reads the flat pattern back: each leg length is measured off the flat outline, walking outward from the bend's attachment past its reported bend allowance to the far edge of that region. So a wrong allowance, angle or bend direction lands the refolded solid somewhere the original is not, and this reports the disagreement instead of hiding it.

handle: a sheet part to unfold and then refold. flat: alternatively a sheet_unfold report, to refold a development produced elsewhere (or a deliberately corrupted one, to prove the check bites). compare: the handle to check against; defaults to handle, and is skipped when only flat is given. volume_tol_pct / bbox_tol_mm: agreement tolerances.

Note the round trip that is meaningful and the one that is not: refold-vs-folded must match, but flat-vs-folded VOLUME must not, and does not. Bending preserves neutral-fibre length, not material volume — a bend sector's true volume is angle·t·(R + t/2)·w while its flat footprint is angle·(R + K·t)·t·w, and those agree only at K = 0.5.

Returns {handle, name, volume_mm3, bbox, bends, compare?} where compare is {handle, matches, volume_mm3, volume_error_pct, bbox_max_error_mm, tolerance}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flatNo
nameNoSheetRefold
handleNo
compareNo
k_factorNo
bend_tableNo
bbox_tol_mmNo
volume_tol_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and discharges it well: it discloses that this does NOT replay the feature model, that it measures leg lengths off the flat outline, that it reports disagreement rather than hiding it, and it warns about the meaningful vs meaningless round trip (volume must not match). This is unusually rich behavioral disclosure for a mutation/verification tool.

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-loads the purpose in one sentence and uses short paragraphs, each earning its place. It is somewhat long with a dense physics digression, but the structure keeps it navigable and nothing is irrelevant.

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?

Despite no annotations and no output schema, the description spells out the return shape ({handle, name, volume_mm3, bbox, bends, compare?} with the compare sub-fields) and the tolerance defaults. For an 8-parameter tool this is complete enough to call 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 coverage is 0%, so the description must compensate, and it adds real meaning for handle, flat, compare, volume_tol_pct, and bbox_tol_mm. However, name, k_factor, and bend_table are never described as parameters (K appears only in the physics aside), leaving three of eight undocumented.

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 and resource ('Fold a flat pattern back up') and immediately positions it against its sibling as 'the other half of the unfold gate.' An agent can distinguish this from sheet_unfold and sheet_check without opening any 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?

Explicitly routes the caller between the two entry modes: pass `handle` for a sheet part, or `flat` for a sheet_unfold report 'produced elsewhere (or a deliberately corrupted one, to prove the check bites).' It also states that `compare` defaults to `handle` and is skipped when only `flat` is given, giving clear when-to-use and how-to-select guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools