Skip to main content
Glama
bambu-slice-mcp

bambu-slice-mcp

by ZHT0711

Sweep one parameter and compare real results

optimize

Slices the same model once per value of one config key, then returns measured print time and filament usage sorted by print time so you can compare parameter costs.

Instructions

Build and actually slice the same model once per value of a single config key, then return a table of measured print time and filament usage sorted fastest first. This answers questions like 'how much time does support_threshold_angle cost me?' with sliced numbers instead of guesses.

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": {
      "input": "<input>",
      "sweep_param": "<sweep_param>",
      "values": "<values>"
    },
    "name": "optimize"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPath to .stl or .3mf
valuesYesValues to try
machineNo
processNo
filamentNo
output_dirNoWhere to save sliced output. Default: <input dir>/bambu_sweep, keeping only the best run. When set explicitly, every successful run is kept.
sweep_paramYesConfig key to vary, e.g. support_threshold_angle, layer_height
base_overridesNoOverrides applied to every run
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the most important trait: it *actually* slices rather than estimating, which implies real compute cost. However, it never states how long a sweep can run (values up to 12 against a 900s default timeout), what happens when individual runs fail, or what its disk side effects are.

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?

Two sentences, front-loaded with the behavior and followed by the motivating question. The phrase 'instead of guesses' is slightly promotional but reinforces the key distinction between measured and estimated results, so it mostly earns its place.

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 9-parameter, nested-object tool with no output schema, the description does describe the return value (a table of measured print time and filament usage, fastest first), which is the biggest gap it could have left. What remains thin is operational context: expected duration, partial-failure behavior, and the meaning of the profile parameters.

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 coverage is 56%, mid-range, and the description's 'once per value of a single config key' usefully frames the sweep_param/values pairing. But it adds nothing about machine/process/filament profile selection, base_overrides, or timeout_seconds, leaving roughly half the parameters to schema-only text.

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 compound verb and resource: build and slice the same model once per value of a single config key, then return measured print time and filament usage sorted fastest first. That scope ('once per value') is exactly what separates it from slice_project's single build, so an agent can route correctly without inspecting either 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?

The second sentence gives a concrete triggering question ('how much time does support_threshold_angle cost me?') that tells the agent this is the tool for cost-attribution of a single parameter. It stops short of naming when not to use it (e.g., for a one-off build, use slice_project) or warning that a multi-value sweep is expensive.

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