Skip to main content
Glama
formlabs-local-mcp

formlabs-local-mcp

by mkebiclioglu

import_model

Imports STL, OBJ, 3MF, or STEP files from an absolute path into a scene, auto-repairing common mesh issues before printing.

Instructions

Import a model file (STL, OBJ, 3MF, STEP) into a scene. file must be an absolute path. Returns the model with its id. Defaults differ from the raw API: repair_behavior=REPAIR (the API default ERROR fails on slightly broken meshes most CAD tools export) and units=MILLIMETERS (use INCHES for inch files, DETECTED to let PreForm guess). After importing, the scene is re-read and the call fails with IMPORT_PRODUCED_EMPTY_SCENE if no model was added: the file is malformed, do not retry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "import_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
nameNo
scaleNo
unitsNoMILLIMETERS
positionNo
scene_idNoScene id; omit for the default scenedefault
orientationNoEuler degrees {x,y,z}, or {z_direction:[..], x_direction:[..]} unit vectors
repair_behaviorNoREPAIR
split_multi_model_fileNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.16
    • addedInput schema / properties / scene_id / pattern
      Added value: +"^(?!\\.{1,2}$)[^/\\\\?#%]+$"
  2. First observedv1.0.4

TDQS

A3.7/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the mutation profile is partly covered. The description adds real value beyond them: the file path must be absolute, defaults intentionally differ from the raw API (repair_behavior=REPAIR vs ERROR), the scene is re-read after import, and a specific failure code means the file is malformed and should not be retried. This is meaningful disclosure, though it still doesn't say whether an import can duplicate or overwrite existing models.

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 verb, resource, and formats, then moves through path requirement, defaults, and failure semantics in a logical order. The long parenthetical about defaults versus the raw API is dense but every clause carries information, so there is minimal waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the highest-risk semantics, the absolute path requirement, the default divergence from the API, and the terminal failure mode, plus it states the return (the model with its id) even though no output schema exists. For a 9-parameter import tool with nested position/orientation objects, it leaves several parameters and the split/overwrite behavior undocumented.

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

Parameters2/5

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

With 9 parameters and only 22% schema coverage, the description carries the burden, and it explains only file, units, and repair_behavior. The remaining parameters (name, scale, position, scene_id, orientation, split_multi_model_file) get nothing beyond the schema's bare types and defaults, including one nested object.

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 ("Import a model file") plus the supported formats (STL, OBJ, 3MF, STEP) and the target (a scene). That is enough to tell it apart from siblings like duplicate_model, replace_model, or create_scene 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 Guidelines4/5

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

Gives concrete selection guidance for parameters: use INCHES for inch files, DETECTED to let PreForm guess, and it warns not to retry on IMPORT_PRODUCED_EMPTY_SCENE. It stops short of naming an alternative tool for related cases (e.g. replacing an existing model), so it is strong context rather than a full when/when-not map.

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