get_work_orders
Retrieve and filter IBM MAS work orders by status, asset, crew, date range, priority, or work type. Query open WOs and get full details including costs, dates, and failure codes.
Instructions
Fetch work orders from IBM MAS with flexible filters. Use this to query open WOs, filter by status, work type, asset, crew, date range, or priority. Returns full WO details including costs, dates, and failure codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crew | No | Filter by crew name | |
| limit | No | Max records to return (default 50, max 200) | |
| search | No | Free-text search in WO description | |
| status | No | Filter by status. Examples: INPRG, APPR, WAPPR, COMP, CLOSE, CAN. Comma-separate for multiple: "INPRG,APPR" | |
| date_to | No | Report date to (YYYY-MM-DD) | |
| assetnum | No | Filter by asset number (exact or partial) | |
| location | No | Filter by location code | |
| priority | No | Filter by priority (1=Critical, 2=Urgent, 3=Normal, 4=Low) | |
| worktype | No | Filter by work type: PM, CM, EM, CAL, OT, INS | |
| date_from | No | Report date from (YYYY-MM-DD) |