Skip to main content
Glama

Import STEP

import_step
Idempotent

Use this when the user wants to start from their own STEP, IGES, native OCCT BREP, STL, OBJ, PLY, 3MF, glTF or GLB file (a part they designed elsewhere, a vendor model). Give exactly one source: url (a public https direct-download link), upload (a file the user attached in ChatGPT), or content_base64 (raw bytes, small files only). Max 50 MB. The format is detected from the bytes or file name (or pass format: 'step' | 'iges' | 'brep' | 'stl' | 'obj' | 'ply' | '3mf' | 'gltf' | 'glb'). STEP, IGES and BREP produce exact B-rep solids; IGES uses OCCT's reader and the shared topology repair pass, while BREP is OCCT's native serialization. A CAD file that does not produce a valid solid fails; it is never replaced by a mesh. STL is imported as faceted geometry. OBJ, PLY, 3MF, glTF and GLB stay source meshes. Writes the file and a starter .kcad.ts into output_dir (default: a fresh temp dir), evaluates it, and returns { ok, format, model_path, script_path, code, bbox, import_report }. The report gives representation, exact_solid, mesh_fallback, repair_required, solid_count, face_count, and triangle_count. Native CAD importers fail if they do not produce an exact solid; they never substitute a mesh. Every mesh format is reported as source-mesh, not as a CAD fallback. Pass script_path as { file } to evaluate_script, add_feature, dfm_review, export and the other tools, or edit code to build on the body. Source meshes are display-only triangle geometry. Use STEP, IGES or BREP when exact CAD topology is required. A non-watertight STL is refused unless allow_open is true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic https URL that downloads a .step/.stp/.igs/.iges/.brep/.brp/.stl/.obj/.ply/.3mf/.gltf/.glb file directly.
nameNoBase name for the written files. Default 'imported'.
formatNoOverride format detection.
uploadNoChatGPT file reference for a file the user attached.
file_nameNoOriginal file name, used for format detection.
allow_openNoSTL only: accept a non-watertight mesh as an open shell.
output_dirNoWhere to write the file and starter script. Default: a new temp directory.
content_base64NoThe file bytes, base64-encoded (small files).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "step",
      -  "stl"
      -]New value: +[
      +  "step",
      +  "iges",
      +  "brep",
      +  "stl",
      +  "obj",
      +  "ply",
      +  "3mf",
      +  "gltf",
      +  "glb"
      +]
    • changedInput schema / properties / url / description
      Previous value: -"Public https URL that downloads the .step/.stp/.stl file directly."New value: +"Public https URL that downloads a .step/.stp/.igs/.iges/.brep/.brp/.stl/.obj/.ply/.3mf/.gltf/.glb file directly."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses concrete side effects: it writes the source file and a starter <name>.kcad.ts into output_dir, evaluates the script, and returns model_path, script_path, code, bbox, and import_report. It also describes failure behavior, including the 50 MB limit, refusal of non-watertight STL unless allow_open is true, and the rule that native CAD importers fail rather than silently substituting a mesh.

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 front-loaded with the usage trigger and source-selection rule, then moves through format behavior and output details. It is long but mostly justified by the nine supported formats and eight parameters, though the exact-solid/no-mesh-fallback point is repeated and 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?

For a complex importer with eight parameters, nested upload data, multiple formats, and an output schema, the description supplies the missing operational context: source cardinality, size limit, format detection, format-specific import behavior, failure modes, and how to reuse the returned script_path. Nothing an agent needs in order to call this correctly appears to be missing.

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 100%, so the baseline is 3, but the description adds important constraints not expressed in the schema: exactly one source must be supplied, only a public https direct-download URL is accepted, and total size is capped at 50 MB. It also clarifies that format detection uses bytes or file name and explains the meaning of allow_open for STL.

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 states a specific verb and resource: start from the user's own CAD or mesh file, with a full list of supported formats and the output artifacts it writes. It clearly distinguishes this import path from starting from scratch or fetching an existing part by describing the user-supplied file scenario.

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 an explicit trigger: use this when the user wants to start from their own STEP/IGES/BREP/STL/OBJ/PLY/3MF/glTF/GLB file. It also guides format choice by saying STEP, IGES, or BREP should be used when exact CAD topology is required, and that source meshes are display-only. It does not explicitly name when to use a sibling such as fetch_part or drawing_to_cad instead, which keeps it below 5.

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.