| name | work-order-preparation |
| description | Prepare for a work order by fetching the WO details and checking stock availability for all required parts. Use when the technician wants to get ready for a job, check if parts are available for a WO, or asks "what do I need for WO-XXX". |
Work Order Preparation
Use this skill when the technician wants to prepare for a work order โ checking that
all required parts are available before heading to the job site.
When to Use
- "What do I need for WO-007?"
- "Check parts for WO-003"
- "Am I ready for my next job?"
- "Prepare for WO-010"
- "Are the parts available for WO-007?"
Tools Used by This Skill
This skill uses two capabilities from the Foundry Toolbox:
| Capability | Prefixed tool name |
|---|
| Get the work order | work_orders___get_work_order_work_orders__work_order_id__get |
| Check stock for the parts list | inventory___check_stock_batch |
Step 0: Discover tools (REQUIRED before first call this turn)
If either tool isn't already visible in your tool list, run one combined tool_search with limit: 10:
tool_search({"query": "work order parts stock inventory", "limit": 10})
Never run two separate searches โ one combined query with limit: 10 returns all needed tools, and they stay callable for the rest of the turn.
Step-by-Step Instructions
Step 1: Fetch the Work Order
Call work_orders___get_work_order_work_orders__work_order_id__get via call_tool with {"work_order_id": "WO-XXX"}.
Extract the parts_needed list โ each entry has a part_id and quantity.
If the work order has no parts_needed, skip to Step 3 and note that no parts
are listed for this WO.
Step 2: Check Stock for All Parts
Call inventory___check_stock_batch via call_tool with {"part_ids": [<all part_ids>]} in a single call.
This returns stock status for every part at once โ do NOT call check_stock individually.
Compare the required quantity against the available stock for each part.
Classify each part:
- โ
Ready โ stock โฅ required quantity
- โ ๏ธ Partial โ some stock available but less than required
- โ Unavailable โ out of stock
Step 3: Present the Preparation Checklist
CRITICAL: You MUST use this exact structure with headers and a table. Never output
a plain paragraph. This is a multi-source response that combines work order data
and inventory data โ use visual separators between sections.
### ๐ Work Order โ WO-007
**Fiber Splice Repair** | ๐ก In Progress | ๐ด Critical
**Location:** 456 Industrial Pkwy, Building C
**Technician:** Mike Chen | **Due:** 2025-06-15
---
### ๐ฆ Parts Checklist
| Part | Need | Available | Status | Location |
|------|------|-----------|--------|----------|
| SC Connector (FIB-012) | 2 | 342 | โ
Ready | WH-A1 |
| Splice Tray (FIB-045) | 1 | 0 | โ Unavailable | โ |
---
### โ ๏ธ Summary
**1 of 2 parts ready** โ Cannot fully proceed.
FIB-045 (Splice Tray) is out of stock. Check with supply chain for alternatives.
Overall status logic:
- All parts ready โ "โ
All parts available โ you're good to go!"
- Some parts missing โ "โ ๏ธ Cannot fully proceed โ {N} part(s) unavailable."
- No parts listed โ "โน๏ธ No parts listed for this work order."
Step 4: Offer Next Steps
Based on the preparation result:
- All ready: "Want me to pull up any procedures for this type of job?"
- Parts missing: "Want me to search for alternative parts or update the WO?"
- No parts: "Should I add parts to this work order?"
What NOT to Do
- โ Do not skip the stock check โ always verify each part
- โ Do not mark a part as ready without checking actual stock
- โ Do not use the knowledge base for this skill (that's field-briefing)
- โ Do not guess part availability