Skip to main content
Glama

sheet_flat_export

Export sheet metal flat patterns to layered DXF files for laser, punch, or press-brake fabrication. Write CUT and bend layers directly for shop-ready quoting and cutting.

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?

With no annotations, the description carries the full burden and does much of it: DXF R12 ASCII, millimetre units, writing directly rather than through TechDraw, layer write semantics, and a full return-field breakdown. It does not address file-overwrite behavior, permissions, or failure modes, which keeps it short of a 5.

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-loaded with the core verb and artifact, then structured into layer/DXF/parameter/return blocks. A few marketing-flavoured clauses ('the deliverable the whole sheet-metal family exists to produce') are expendable but the bulk of the prose earns its place.

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?

There is no output schema, and the description compensates by enumerating the return object (path, size, layers, entities, flat_size, bends, k_factor, fidelity, warnings). The unresolved gaps are the undocumented `handle` argument and absent overwrite/error behavior, so it is strong but not fully complete.

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 0%, so the description must compensate. It adds the .dxf path constraint and cross-references k_factor/bend_table to sheet_unfold, which is useful, but `handle` is never explained and the cross-reference is indirect rather than defining the arguments.

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?

It names a specific verb+resource (write the flat pattern as a layered DXF) and frames the deliverable distinctly from the broader drawing/export siblings such as export_drawing and export_shape. The layer contract (CUT, BEND_UP, BEND_DOWN) further pins down what the artifact is.

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 clearly situates the tool as the terminal deliverable of the sheet-metal family and notes the `path` must end in .dxf, plus that k_factor/bend_table behave as in sheet_unfold. However, it never says when NOT to use it (e.g. versus export_shape for a generic solid export), so exclusions are left to inference.

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