Skip to main content
Glama

import_mesh

Imports loose OBJ or FBX models into the Daz scene at the correct scale without using the importer dialog, then returns the new node, size, and surfaces.

Instructions

Imports a loose OBJ or FBX model (Sketchfab, CGTrader, Blender, a package's meshes) into the scene with the right size, without the importer dialog. Returns the new node, its size in cm and its surfaces. Clothing modeled for a figure then goes through wearable_from_mesh. For FBX, leave units on auto: the file states its units, and Blender keeps the meters-to-cm factor in the object scale.

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": {
      "path": "<path>"
    },
    "name": "import_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of an .obj or .fbx file.
roomNoA room or set: drop_to_floor stands its floor (the largest level surface with something over it and room to stand, so not a flat roof, an upper storey or the ground) on Y = 0, not its lowest point, which is often ground or scenery outside.
takeNoFBX: animation take to import.
glassNoMake the surfaces the file marks see-through (windows, glasses) clear Iray glass.
labelNoLabel for the imported node.
scaleNoMultiply its size by this, e.g. 0.1 when mesh_inspect or a first import says it is 10x too big.
unitsNoUnits the file is in. auto: OBJ is guessed from its size, FBX uses the units stored in the file.auto
heightNoScale it uniformly to this height in cm (e.g. 180 for a person).
optionsNoExtra importer settings (advanced).
up_axisNoOBJ only: Z for Z-up files that import lying down.Y
positionNo[x, y, z] cm.
keep_emptiesNoKeep the camera, light and empty nodes a Blender export brings along.
drop_to_floorNoPut its lowest point on the floor. Leave off for clothing modeled around a figure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.3
    • addedInput schema / properties / glass
      Added value: +{
      +  "default": true,
      +  "description": "Make the surfaces the file marks see-through (windows, glasses) clear Iray glass.",
      +  "title": "Glass",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / keep_empties
      Added value: +{
      +  "default": false,
      +  "description": "Keep the camera, light and empty nodes a Blender export brings along.",
      +  "title": "Keep Empties",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / room
      Added value: +{
      +  "default": false,
      +  "description": "A room or set: drop_to_floor stands its floor (the largest level surface with something over it and room to stand, so not a flat roof, an upper storey or the ground) on Y = 0, not its lowest point, which is often ground or scenery outside.",
      +  "title": "Room",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / scale
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Multiply its size by this, e.g. 0.1 when mesh_inspect or a first import says it is 10x too big.",
      +  "title": "Scale"
      +}
  2. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, openWorld=false; the description adds real behavioral context beyond that — it bypasses the importer dialog, mutates the scene by adding a node, and discloses the return payload explicitly, which matters since there is no output schema. It also explains the FBX unit-preservation behavior (file states units, Blender keeps the meters-to-cm factor in object scale), which is a non-obvious side effect. It does not say whether re-importing creates duplicates or overwrites, nor anything about failure modes.

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-loads purpose, then the return value, then the clothing hand-off, then the units caveat — a sensible priority order for callers. The FBX units sentence is slightly long and its 'Blender keeps the meters-to-cm factor in the object scale' clause is dense, but it carries real information rather than filler.

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 13-parameter scene-mutating importer with no output schema and only thin annotations, the description supplies what the structured fields cannot: the return shape, the units pitfall, the clothing exception, and the scale-correction path. Nothing an agent needs to make a correct first call is conspicuously absent; remaining gaps (duplicate-node behavior, error cases) are minor relative to what is covered.

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 description coverage is 100%, so the baseline is 3, but the description adds cross-parameter reasoning the schema cannot: 'For FBX, leave units on auto' ties the units and FBX-format decisions together, and the clothing caveat about drop_to_floor tells the agent how that flag interacts with the mesh's modeled context. Remaining params (options, keep_empties, glass, position) are left to the schema alone, which is acceptable given full coverage.

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 ('Imports a loose OBJ or FBX model ... into the scene'), plus the outcome ('with the right size, without the importer dialog') and the return payload (node, size in cm, surfaces). It also names the sibling it hands off to (wearable_from_mesh) and the one that informs scale decisions (mesh_inspect), so an agent can distinguish it from neighbors without opening schemas.

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 routing conditions: clothing for a figure goes through wearable_from_mesh afterward, a first import that comes in 10x too big means use scale (echoed in the scale param), and drop_to_floor should be left off for clothing modeled around a figure. It lacks explicit when-not-to-use guidance for competing entry points (e.g., library content loading) and does not say what to do if the file is missing or already imported.

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