Skip to main content
Glama
orcaslicer-mcp

orcaslicer-mcp

Set filament slot mapping

set_filament_slot_mapping

Choose which CANVAS tray each filament prints from for the next Send on Elegoo Centauri Carbon 2; this pins filament-to-tray mapping without starting a print.

Instructions

Choose which CANVAS tray each filament prints from on the next Send (Elegoo Centauri Carbon 2 only); it starts nothing.

Returns the same reply as get_filament_slot_mapping, so check valid and problems. Needs fork v2.4.2-mcp.14 or later. Not for Bambu Lab printers: there the tray is chosen in OrcaSlicer's Send dialog, which keeps nothing this tool could set; get_filament_slot_mapping shows what it will pre-fill. It reads the printer when no slot list is cached, so it can take up to about 18 seconds, and OrcaSlicer's API serves one request at a time meanwhile, so other tools wait.

The list REPLACES the whole mapping set through the API: a filament left out gets no tray from the API, and an empty list clears the API choices so Send falls back to the saved choices and automatic matching. Include every filament you want pinned.

This starts nothing. OrcaSlicer's own Send dialog opens pre-filled with this mapping and the user still clicks Send. Each tray can serve only one filament (422 duplicate_tray), the tray must be ready (422 tray_not_ready), and the indexes must exist (422 unknown_filament_index, which also covers a project filament that is not on the plate; unknown_tray, slots_unavailable when the printer could not be read; the reply then says why). Malformed lists get 400: each filament at most once, and integers for filament, canvas_id and tray_id. Use get_printer_slots first to pick trays whose material and colour fit.

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": {
      "mapping": "<mapping>"
    },
    "name": "set_filament_slot_mapping"
  }
}

Input Schema

NameRequiredDescriptionDefault
mappingYesOne entry per filament of the plate the next Send uses (the indexes get_filament_slot_mapping lists): {filament: 0-based filament index, canvas_id, tray_id} from get_printer_slots.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.19

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the tool starts nothing, that the list REPLACES the whole mapping set, and that an empty list clears the API choices and falls back to saved choices and automatic matching. It also explains the latency profile (up to ~18 seconds, serialized API so other tools wait) and enumerates the 422/400 error conditions (duplicate_tray, tray_not_ready, unknown_filament_index, unknown_tray, slots_unavailable), which is unusually rich behavioral context.

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?

It is front-loaded with purpose and the 'starts nothing' caveat, and nearly every sentence carries operational value. The single dense paragraph is long for one parameter and could be broken into bullets for scanability, but no sentence is genuinely wasted.

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?

With no output schema, the description explains the return contract ('Returns the same reply as get_filament_slot_mapping, so check valid and problems'). Combined with the version requirement and the error catalog, an agent has everything it needs to call this correctly.

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

Parameters5/5

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

The single parameter already has full schema coverage, but the description adds real meaning beyond it: replace-not-merge semantics, the consequence of omitting a filament, and the clearing effect of an empty list. It also clarifies the malformed-input contract (each filament at most once, integers for filament, canvas_id and tray_id), which the schema does not express.

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 opens with a specific verb and resource: 'Choose which CANVAS tray each filament prints from on the next Send', and immediately bounds the scope with '(Elegoo Centauri Carbon 2 only); it starts nothing.' It is clearly distinguishable from get_filament_slot_mapping, which is named as the read-only counterpart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It states when to use it, the required ordering ('Use get_printer_slots first to pick trays whose material and colour fit'), and an explicit when-not with the alternative behavior described: 'Not for Bambu Lab printers: there the tray is chosen in OrcaSlicer's Send dialog'. It also directs the agent to get_filament_slot_mapping to preview the pre-fill, so nothing is left to inference.

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