Skip to main content
Glama

counterpart_make_3mf

Idempotent

Counterpart contract (counterpart/1): combine STL parts exported separately (for example each body of a design) into one new 3MF for multi-colour printing.

Instructions

Counterpart contract (counterpart/1): combine STL parts exported separately (for example each body of a design) into one new 3MF for multi-colour printing. The parts keep their relative positions as one assembly, and each part prints with its filament number (default: part 1 uses filament 1, part 2 filament 2, and so on). Slice it with slice_stl, passing one load_filaments profile per filament number, then print it with print_3mf and ams_mapping or ams_slots. Never overwrites a 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": {
      "parts": "<parts>",
      "out_path": "<out_path>"
    },
    "name": "counterpart_make_3mf"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsYesThe parts, in filament order.
out_pathYesNew .3mf path whose parent directory exists. Existing files are never overwritten.

Output Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of the written 3MF.
partsYes
objectsYesObjects in the 3MF: one assembly.
contractYes
filamentsYesHighest filament number any part uses; pass that many load_filaments to slice_stl.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.97
    • addedInput schema / properties / parts / items / properties / color
      Added value: +{
      +  "description": "The part's colour as #RRGGBB. Give every part one, or none: the 3MF then declares each filament's colour (project_settings.config filament_colour), as Bambu Studio does, and parts on one filament share it.",
      +  "pattern": "^#[0-9A-Fa-f]{6}$",
      +  "type": "string"
      +}
    • addedOutput schema / properties / parts / items / properties / color
      Added value: +{
      +  "pattern": "^#[0-9A-F]{6}$",
      +  "type": "string"
      +}
  2. Addedv1.1.51

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses the filament-numbering default rule, that relative part positions are preserved as one assembly, and that colour declarations are written to project_settings.config the way Bambu Studio does. It also states the no-overwrite guarantee, which reinforces the non-destructive hint with concrete behaviour.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with what it produces, then the assembly/filament behaviour, then the follow-on tool chain. No filler and no repetition of the name or title.

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 two-parameter construction tool it covers output path expectations, filament modelling, and the exact downstream slicing/printing calls. An output schema exists, so return-value detail is correctly omitted.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents parts, filament, color, name and out_path. The description restates the filament-per-part default and the all-or-none colour rule, which is helpful reinforcement but adds little beyond the schema text; baseline 3 applies.

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 gives a specific verb and resource ('combine STL parts ... into one new 3MF') plus the motivating use case ('multi-colour printing'), and it pins down the assembly semantics (parts keep relative positions, one filament per part). An agent can distinguish this from slice_stl and print_3mf without opening the 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?

It gives an explicit downstream sequence: slice with slice_stl using one load_filaments profile per filament number, then print with print_3mf using ams_mapping or ams_slots. That is real when-and-how guidance, but there is no explicit when-not or a named alternative for other assembly/merge cases.

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