add_bom_item
Add a bill of materials line item to a project. Link it to an inventory item to automatically reserve stock for that part.
Instructions
Add a Bill of Materials line item to a project. If linked to an inventory item, it reserves stock.
Args: project: The ID of the project. description: Description of the BOM item (e.g. "M3x8 SHCS"). quantity_needed: Quantity needed. inventory_item: Optional ID of an existing inventory item to link (reserves stock). status: BOM status — 'linked' (auto-reserves), 'unlinked', or 'needs_purchase'. notes: Free-text notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| status | No | unlinked | |
| project | Yes | ||
| description | Yes | ||
| inventory_item | No | ||
| quantity_needed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |