Skip to main content
Glama
bambu-mcp

bambu-mcp

extrude

Advance or retract filament by a set length in millimeters on Bambu printers, with a 170°C nozzle safety check and dry-run preview unless confirmed.

Instructions

Extrude (positive) or retract (negative) filament in mm (Bambu Studio uses 10 per click, max 50 here). Refused unless the nozzle is at least 170 C. Dry run unless confirm=true.

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": {
      "length_mm": "<length_mm>"
    },
    "name": "extrude"
  }
}

Input Schema

NameRequiredDescriptionDefault
nozzleNoactive
confirmNo
length_mmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare it as a non-read-only, non-destructive, closed-world write. The description adds real behavioral context beyond that: the 50 mm cap, the 170 C hotend interlock that causes refusal, and the dry-run-by-default semantics gated by confirm=true. That is exactly the kind of gating and limit information an agent needs before invoking a physical actuator.

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 short sentences, front-loaded with the core action and direction convention, then limits, then safety preconditions. No filler and no repetition of the schema.

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 three-parameter actuator with no output schema, the definition covers direction, units, magnitude cap, temperature interlock and confirmation semantics. What is missing is minor: it does not state what a dry run returns versus a confirmed run, or whether the call blocks until extrusion completes.

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 description coverage is 0%, so the description must carry the load, and it explains two of three parameters well: length_mm gains sign, unit and max-50 semantics, and confirm is defined as the dry-run toggle. The nozzle parameter is left unaddressed, though its active/left/right enum with a default is largely self-describing.

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?

The description names a specific verb (extrude/retract), the resource (filament), the unit (mm) and the sign convention that selects direction. It is distinguishable from siblings like load_filament and unload_filament by being a measured, in-place extrusion rather than a spool operation, though it never explicitly contrasts them.

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 concrete preconditions and a safety gate: refused below 170 C, and dry run unless confirm=true, which tells the agent the default call is non-committal. It does not say when to prefer this over load_filament/unload_filament for filament moves, so there is a gap in alternative routing.

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