create_material
Add a new filament material to your inventory, either as a generic type or a specific brand/color blueprint, with full printing parameters.
Instructions
Create a new material — either a generic type (e.g. 'PLA') or a specific blueprint (e.g. 'Sunlu PLA+ Black').
A generic material is a base type that blueprints reference. A blueprint is a specific brand/color combination that spools are linked to. Create a generic first, then blueprints that reference it via base_material_id.
Args: name: Material name (e.g. 'PLA' for generic, 'Sunlu PLA+ Black' for blueprint). is_generic: True for a generic base material, False for a specific blueprint. brand: Brand name for blueprints (will be created if new). Ignored for generics. base_material_id: ID of a generic material this blueprint is based on. colors: List of color names (e.g. ['Black'] or ['Black', 'Red'] for multicolor). color_family: Color family for grouping (e.g. 'Black', 'Red', 'Neutral'). diameter: Filament diameter in mm (default 1.75). spool_weight: Net filament weight per spool in grams (default 1000). empty_spool_weight: Empty spool weight in grams. nozzle_temp_min: Minimum nozzle temperature in Celsius. nozzle_temp_max: Maximum nozzle temperature in Celsius. bed_temp_min: Minimum bed temperature in Celsius. bed_temp_max: Maximum bed temperature in Celsius. density: Filament density in g/cm3 (e.g. 1.24 for PLA). price_per_spool: Price per spool. vendor: Vendor name (will be created if new). vendor_link: URL to vendor product page. notes: Free-text notes. features: List of feature names (e.g. ['Matte', 'High Speed']). Created if new.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| brand | No | ||
| notes | No | ||
| colors | No | ||
| vendor | No | ||
| density | No | ||
| diameter | No | ||
| features | No | ||
| is_generic | No | ||
| vendor_link | No | ||
| bed_temp_max | No | ||
| bed_temp_min | No | ||
| color_family | No | ||
| spool_weight | No | ||
| nozzle_temp_max | No | ||
| nozzle_temp_min | No | ||
| price_per_spool | No | ||
| base_material_id | No | ||
| empty_spool_weight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |