Skip to main content
Glama

generate_adaptive_slicing_plan

Read-only

Create a per-layer 3D printing plan with variable heights, speeds, and cooling based on detected geometry regions and material constraints.

Instructions

Generate a per-layer adaptive slicing plan.

Creates a layer-by-layer plan with variable heights, speeds, and
cooling based on detected geometry regions and material constraints.

Args:
    regions: List of region dicts (as ``analyze_model_geometry``
        returns them): ``region_type`` (one of fine_detail, standard,
        bulk, overhang, bridge, top_surface, bottom_surface, thin_wall,
        curved_surface, support_contact), ``z_start_mm``, ``z_end_mm``
        and ``area_pct``.
    material: Material name (PLA, PETG, ABS, etc.).
    model_height_mm: Total model height in mm.
    model_name: Optional model name for record keeping.
    printer: Optional printer identifier.
    nozzle_diameter_mm: Nozzle diameter in mm.  Leave unset for the
        nozzle Kiln has for ``printer`` (or the only printer it knows
        of), else 0.4; the reply's ``nozzle`` says which.
    mode: Adaptive strategy — "balanced" (default), "quality_first",
        "speed_first", or "material_optimized".

When Kiln's settings tuned to the material cannot be reached (offline,
signed out), the plan is built from generic settings worked out from
the nozzle size and the reply says ``basic: true``, with ``message``
saying why.

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": {
      "regions": "<regions>",
      "material": "<material>",
      "model_height_mm": "<model_height_mm>"
    },
    "name": "generate_adaptive_slicing_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoAdaptive strategy — "balanced" (default), "quality_first", "speed_first", or "material_optimized". Default: "balanced".
printerNoOptional printer identifier.
regionsYesList of region dicts (as ``analyze_model_geometry`` returns them): ``region_type`` (one of fine_detail, standard, bulk, overhang, bridge, top_surface, bottom_surface, thin_wall, curved_surface, support_contact), ``z_start_mm``, ``z_end_mm`` and ``area_pct``.
materialYesMaterial name (PLA, PETG, ABS, etc.).
model_nameNoOptional model name for record keeping. Default: "".
model_height_mmYesTotal model height in mm.
nozzle_diameter_mmNoNozzle diameter in mm. Leave unset for the nozzle Kiln has for ``printer`` (or the only printer it knows of), else 0.4; the reply's ``nozzle`` says which.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.5.1
    • addedInput schema / properties / material / description
      Added value: +"Material name (PLA, PETG, ABS, etc.)."
    • changedInput schema / properties / mode / description
      Previous value: -"Default: \"balanced\"."New value: +"Adaptive strategy — \"balanced\" (default), \"quality_first\", \"speed_first\", or \"material_optimized\". Default: \"balanced\"."
    • addedInput schema / properties / model_height_mm / description
      Added value: +"Total model height in mm."
    • changedInput schema / properties / model_name / description
      Previous value: -"Default: \"\"."New value: +"Optional model name for record keeping. Default: \"\"."
    • addedInput schema / properties / nozzle_diameter_mm / description
      Added value: +"Nozzle diameter in mm.  Leave unset for the nozzle Kiln has for ``printer`` (or the only printer it knows of), else 0.4; the reply's ``nozzle`` says which."
    • addedInput schema / properties / printer / description
      Added value: +"Optional printer identifier."
    • addedInput schema / properties / regions / description
      Added value: +"List of region dicts (as ``analyze_model_geometry`` returns them): ``region_type`` (one of fine_detail, standard, bulk, overhang, bridge, top_surface, bottom_surface, thin_wall, curved_surface, support_contact), ``z_start_mm``, ``z_end_mm`` and ``area_pct``."
  2. Changed8 schema fields changedv1.5.0
    • removedInput schema / properties / mode / default
      Removed value: -"balanced"
    • addedInput schema / properties / mode / description
      Added value: +"Default: \"balanced\"."
    • removedInput schema / properties / model_name / default
      Removed value: -""
    • addedInput schema / properties / model_name / description
      Added value: +"Default: \"\"."
    • addedInput schema / properties / nozzle_diameter_mm / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / nozzle_diameter_mm / default
      Removed value: -0.4
    • removedInput schema / properties / nozzle_diameter_mm / type
      Removed value: -"number"
    • removedInput schema / properties / printer / default
      Removed value: -null
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the description adds genuinely new behavior: a degraded fallback path when Kiln's material-tuned settings are unreachable (offline/signed out), signaled via 'basic: true' and a 'message' explaining why. The nozzle resolution order (printer-specific, else only known printer, else 0.4, echoed in the reply) is also disclosed. It does not describe plan size or any limits on region counts.

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

Conciseness3/5

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

The first two sentences are well front-loaded and earn their place, but the Args block re-states a 100%-covered schema nearly word for word, adding length without information. The fallback paragraph is valuable and appropriately placed at the end.

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 7-parameter, no-output-schema tool, the description supplies the missing return-shape hints ('nozzle', 'basic: true', 'message') that an agent otherwise could not know, plus the upstream dependency on analyze_model_geometry's region dicts. Only minor gaps remain, such as whether regions must be contiguous or sorted by z.

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 all seven parameters, and the Args block in the description is essentially verbatim repetition of those schema strings. No additional semantics (units beyond mm, valid area_pct ranges, ordering or overlap rules for regions) are added beyond what the schema states. Baseline 3 applies.

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?

States a specific verb and resource: 'Generate a per-layer adaptive slicing plan' followed by what the plan contains (variable heights, speeds, cooling from geometry regions and material constraints). That is more precise than the name alone. It does not differentiate itself from adjacent siblings such as quick_adaptive_plan or get_adaptive_plan_summary, so an agent must infer which generation tool to pick.

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?

Usage is implied rather than stated: the 'regions' arg says it takes the output of analyze_model_geometry, which tells the agent this is the downstream step, and 'mode' enumerates strategies. There is no explicit statement of when to prefer this over quick_adaptive_plan or when a plan should be regenerated rather than fetched via get_adaptive_plan_summary.

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

Deploy Server

Other Tools