Skip to main content
Glama

Export Shape

export_shape
Destructive

Export a FreeCAD shape to STEP, IGES, BREP, or STL in the format indicated by the file extension. Target a named object, or export the document's single final shape when only one exists.

Instructions

Export a shape to STEP/IGES/BREP/STL. Format inferred from path extension.

object: FreeCAD object name (NOT a AnkusDrive handle). If omitted, exports the document's single final shape: inputs consumed by another feature (a cut's base/tool, Body features) are skipped, and solids win over sketches. If more than one final shape remains, it raises and lists them. It never picks one for you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
objectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The description goes beyond annotations by detailing the auto-selection behavior when object is omitted: it skips inputs consumed by other features, prefers solids over sketches, and raises an error if ambiguity remains. It also clarifies that the tool never picks one for you. This is valuable behavioral context that annotations (only destructiveHint true) do not convey. It does not contradict the destructive hint, as exporting to disk could overwrite files.

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 efficiently structured: the main purpose is front-loaded, and the object parameter details are organized in a clear block. Every sentence earns its place, explaining format inference and selection rules without fluff. It is slightly longer than strictly necessary but remains concise and readable.

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 tool with only two parameters and no output schema, the description covers the essential aspects: formats, how format is determined, object selection logic, and error handling. It does not explicitly state prerequisites like an active document being open, but that context is likely implied by the document reference. Overall, it is complete enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate fully. It explains the path parameter's format inference and the object parameter's meaning (FreeCAD object name, NOT a handle), optionality, selection algorithm, and error behavior. This adds substantial semantics beyond the bare schema field names and types, making the parameters understandable and usable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool exports a shape to specific formats (STEP/IGES/BREP/STL) and infers format from the path extension. This gives a clear verb+resource+target. It doesn't explicitly contrast with sibling export tools like export_drawing or sheet_flat_export, but the purpose is unambiguous from the description and name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides usage guidance for the object parameter (optional, selection rules, error behavior) and path extension format inference, but it does not explicitly tell the agent when to choose this tool over alternative export tools. There is no mention of alternatives or conditions that would route to a different export function, so the when-to-use guidance is incomplete.

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