get_production_orders
Retrieve production orders from MES systems with optional filtering by status or order ID to track manufacturing workflow progress.
Instructions
Get production orders from MES system. Can filter by status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by production order status | |
| orderId | No | Get specific production order by ID |
Implementation Reference
- src/index.ts:562-582 (handler)Handler for 'get_production_orders' which processes incoming requests, filters mock production order data based on ID or status, and returns the result.
private handleGetProductionOrders(args: { status?: string; orderId?: string; }) { let orders = [...mockProductionOrders]; if (args.orderId) { orders = orders.filter((o) => o.id === args.orderId); } else if (args.status) { orders = orders.filter((o) => o.status === args.status); } return { content: [ { type: "text", text: JSON.stringify(orders, null, 2), }, ], }; } - src/index.ts:65-83 (registration)Tool registration for 'get_production_orders' in the listTools request handler, including its input schema.
{ name: "get_production_orders", description: "Get production orders from MES system. Can filter by status.", inputSchema: { type: "object", properties: { status: { type: "string", enum: ["planned", "in-progress", "completed", "cancelled"], description: "Filter by production order status", }, orderId: { type: "string", description: "Get specific production order by ID", }, }, }, },