Skip to main content
Glama

Sheet Flat Export

sheet_flat_export
Destructive

Writes a sheet-metal flat pattern as a layered DXF (R12, mm) with CUT, BEND_UP, and BEND_DOWN layers, so laser, punch, and press-brake shops can quote and cut from the file. Includes bend allowance.

Instructions

Write the flat pattern as a LAYERED DXF — the file a laser, punch or press-brake shop actually quotes and cuts from. This is the deliverable the whole sheet-metal family exists to produce.

Three layers, because a flat pattern without them is not a shop deliverable: CUT carries the closed outer profile and every hole; BEND_UP and BEND_DOWN carry one centreline per bend, so the operator reads the fold direction off the print rather than inferring it. DXF R12 ASCII in millimetres, written directly rather than through TechDraw — a flat pattern is not a drawing view and does not want a sheet frame, a scale or a title block around it. path must end in .dxf.

Takes the same k_factor / bend_table arguments as sheet_unfold, since the outline it writes IS the development.

Returns {ok, path, size, layers, entities, flat_size, blank_area_mm2, bends (with bend_allowance_mm, bend_deduction_mm, k_factor and k_source per bend), fidelity, band_pct, warnings}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
handleYes
k_factorNo
bend_tableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotation already marks this as destructive, and the description adds valuable behavioral detail: it writes a DXF R12 ASCII file directly, uses millimeters, requires the path to end in .dxf, and emits three named layers with specific content. It also lists the full return payload, including per-bend data and warnings, which goes well beyond the annotation surface.

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 description is long but structured with clear paragraphs: purpose, layer format, technical choices, parameters, and return value. Most sentences earn their place, and the most important information is front-loaded. The motivational sentence about the sheet-metal family is slightly extra but reinforces purpose rather than distracting.

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 file-writing tool with no output schema, the description is unusually complete: it specifies format, units, layers, output payload, and key constraints. The main gap is the missing semantics of the required 'handle' parameter, and error/overwrite behavior is left mostly to the destructiveHint annotation. Overall, the description is strong and actionable.

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 0%, so the description carries the burden of explaining parameters. It explains path must end in .dxf and points to sheet_unfold for k_factor/bend_table semantics, but it never describes the required 'handle' parameter at all. This partial compensation is useful but incomplete for a four-parameter tool.

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 opens with a specific verb and resource: 'Write the flat pattern as a LAYERED DXF,' and immediately states it is the shop deliverable for laser, punch, or press-brake work. It clearly differentiates the tool from drawing-oriented and unfold-related siblings by describing its exact output format and purpose.

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?

The description explains when this tool matters: it produces the deliverable shops quote and cut from, not a drawing view. It contrasts with TechDraw-based drawing exports by saying the flat pattern should not have a sheet frame, scale, or title block, and it links parameter usage to sheet_unfold. It gives clear context but does not explicitly name alternative tools or state 'use this instead of X.'

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