Skip to main content
Glama
formlabs-local-mcp

formlabs-local-mcp

by mkebiclioglu

replace_model

Swap a model's mesh with a revised file while preserving its placement and supports, so re-exported parts update without repositioning.

Instructions

Swap a model's mesh for a new file while keeping its placement and supports. Useful when the user re-exports a revised part. file must be an absolute path.

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": {
      "model_id": "<model_id>",
      "file": "<file>"
    },
    "name": "replace_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
model_idYes
scene_idNoScene id; omit for the default scenedefault
repair_behaviorNoREPAIR

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false; the description adds genuinely useful context that placement and supports survive the swap, plus the absolute-path requirement for `file`. It omits the consequential behavior of `repair_behavior` defaulting to REPAIR (i.e., the incoming mesh may be silently modified) and says nothing about what happens to the replaced file or whether existing supports are revalidated.

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?

Three short sentences, front-loaded with the behavior and the preservation guarantee, then the use case, then the path constraint. No filler; it could only be improved by folding the repair_behavior caveat in rather than being shorter.

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?

For a mutating tool with no output schema, the definition covers the core effect and the one non-obvious input constraint, which is the essential minimum. The missing piece is failure/repair semantics — an agent cannot tell what ERROR vs IGNORE vs REPAIR does or whether a failed swap leaves the model untouched.

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?

Schema coverage is only 25% — just scene_id is documented. The description compensates for exactly one parameter (`file` must be absolute), leaving `model_id` and the REPAIR/ERROR/IGNORE enum with its REPAIR default completely uncharacterized, even though that enum governs whether the mesh is rewritten or the call aborts.

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?

States a specific verb+resource: swaps a model's mesh for a new file, and specifies the preserved state (placement and supports). That is materially clearer than a generic 'update_model', though it never names its closest siblings (import_model, update_model) to draw the boundary explicitly.

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?

Gives one concrete usage scenario ('when the user re-exports a revised part'), which is a real when-to-use cue. It offers no counter-cases or alternatives, so an agent must infer on its own whether to use import_model or update_model instead.

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