Skip to main content
Glama
FlashForge MCP

FlashForge MCP

by ildargiv

flash_slice

Slice STL, 3MF, or OBJ models into FlashForge-ready G-code with automatic orientation, support, and brim selection, returning a print summary.

Instructions

Slice an STL/3MF/OBJ with the installed Flash Studio CLI and return a print summary. Works for the whole bundled Flashforge line (AD5X, Adventurer 3/5M/A5, Creator 5 (Pro), Guider 2s/3 Ultra/4 (Pro), HF variants); defaults to the AD5X 0.4 nozzle (220x220x220, 4-spool IFS). Profiles are flattened (inherits merged), which fixes the silent 60 mm/s generic speeds the CLI otherwise falls back to. Geometry is analyzed to choose orientation, supports and brim; newer 3MF containers the CLI rejects are re-sliced from the extracted mesh. quality: fine (smallest layer), standard (closest to 0.20 mm), draft (largest). Models that do not fit are rejected unless allowOversize=true. Pass up to 4 names in filaments for multi-color jobs. Deliverable is a .gcode file.

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": {
      "stl": "<stl>"
    },
    "name": "flash_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoOutput .gcode path, relative to the current directory. Defaults to <mesh name>.gcode
stlYesMesh path (.stl/.3mf/.obj), relative to the current directory.
brimNo"auto" adds an outer brim for tall/narrow parts or tiny contact; "none"; "outer" = outer_only; "ears" without painted points behaves like a plain brim.auto
raftNotrue = 3 raft layers, or an explicit layer count. For ABS/ASA warping.
colorNoFilament colour for the G-code metadata: a name (orange, red, yellow, green, blue, cyan, purple, pink, black, white, grey, brown) or #RRGGBB. NOTE: the physical colour comes from the filament loaded in the IFS slot.
infillNoSparse infill density percent, e.g. 15. Omit to keep the profile default.
orientNo"auto" (default): rotate only when it clearly removes overhangs or makes the model fit; true/"always": pass --orient; false: keep the mesh as-is.auto
bedTempNoOverride bed temperature (°C) for both first and later layers.
bedTypeNoBed type for the CLI. Defaults to "High Temp Plate".
brimGapNoGap between brim and model in mm; 0 = maximum adhesion.
machineNoMachine profile name, e.g. "AD5X 0.4 nozzle". Defaults to "Flashforge AD5X 0.4 nozzle" (220x220x220).
qualityNostandard
filamentNoFilament profile name (partial match allowed). AD5X variants are auto-picked for the nozzle. Defaults to PLA Basic, or the profile from `material`.
materialNoMaterial preset: picks the AD5X filament profile and safe nozzle/bed temperatures (pla 215/60, petg 250/80, abs/asa 260/100, tpu 225/45). Overridden by explicit `filament`, `nozzleTemp`, `bedTemp`.
supportsNo"auto" (default) enables tree supports only when the analyzed overhang is real; "none"; "tree"; "normal"; or a number = tree angle, e.g. 25.auto
brimWidthNoBrim width in mm (e.g. 10 for a wide adhesion skirt).
filamentsNoUp to 4 filament names for a multi-color AD5X job (IFS). Overrides `filament`; needs a multi-part 3MF.
fuzzySkinNoRoughen the walls for a matte/boucle look.none
nozzleTempNoOverride nozzle temperature (°C) for both first and later layers — useful for non-brand filament.
supportAngleNoOverhang threshold in degrees from vertical (smaller = more supports).
supportStyleNotree: organic|tree_slim|tree_hybrid; normal: grid|snug. Defaults to organic/grid.
allowOversizeNoSlice even if the mesh exceeds the machine build volume (e.g. after scaling in the slicer).
closeFanLayersNoKeep the part cooling fan off for the first N layers.
firstLayerSpeedNoFirst layer speed in mm/s (slower = better adhesion).
fuzzySkinThicknessNo
supportBasePatternNoSupport base pattern: rectilinear|grid|honeycomb|lightning etc.
supportTopZDistanceNoGap between support and part, mm. Defaults to 0.26 for PETG, 0.18 for PLA.
fuzzySkinPointDistanceNo
supportBottomZDistanceNo
supportInterfacePatternNoauto|grid|rectilinear|concentric.
supportInterfaceSpacingNo
supportObjectXyDistanceNoHorizontal clearance between support and model, mm (0.3-0.6).
supportOnBuildPlateOnlyNoOnly let supports start on the build plate (no support-on-model).
supportBasePatternSpacingNo
supportInterfaceTopLayersNoDense interface layers under the overhang (2-3).
supportInterfaceBottomLayersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that profiles are flattened to avoid the CLI's silent 60 mm/s fallback, that geometry is analyzed to pick orientation/supports/brim, that newer 3MF containers get re-sliced from an extracted mesh, and that oversize models are rejected by default. It does not mention runtime, failure modes, or what the 'print summary' contains, which keeps it short of a 5.

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 core action, then the compatibility and behavioral caveats, then the deliverable. Dense but nearly every clause adds information; the parenthetical machine list is the only part that could be trimmed without loss.

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 36-parameter tool with zero annotations and no output schema, the description covers the important ground: what it produces, the default machine/build volume, the oversize and multi-color conditions, and the profile-flattening quirk. It is slightly thin on the vague 'print summary' return and on the unlabeled tuning parameters, but overall an agent has enough to call it correctly.

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 81%, so the baseline would be 3, but the description adds real meaning: it maps quality levels to layer-height behavior, ties `material` presets to concrete nozzle/bed temperatures and notes they are overridden by explicit temps, and explains that `filaments` overrides `filament` and needs a multi-part 3MF. A handful of tuning params (e.g. support spacings, fuzzy skin distances) remain undocumented anywhere.

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 concrete verb (slice) plus the accepted formats (STL/3MF/OBJ) and the deliverable (.gcode plus print summary), and identifies the backend CLI and supported machine line. An agent can tell this is the slicing/print-prep tool and distinguish it from siblings like flash_analyze or flash_profiles 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 Guidelines3/5

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

It offers rich conditional guidance on parameter choice (allowOversize for models that do not fit, up to 4 names in `filaments` for multi-color jobs, auto supports only when overhang is real), but never states when to prefer or avoid this tool relative to the sibling tools. Usage is implied by the workflow rather than explicitly routed.

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