get_equipment
Retrieve equipment status from MES systems to monitor operational states, filter by running, idle, maintenance, or error conditions, and access specific equipment details for maintenance management and asset tracking.
Instructions
Get equipment status from MES system. Can filter by status or get specific equipment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Filter by equipment status | |
| equipmentId | No | Get specific equipment by ID |
Implementation Reference
- src/index.ts:609-625 (handler)The handler function 'handleGetEquipment' that implements the 'get_equipment' tool logic by filtering mock data.
private handleGetEquipment(args: { status?: string; equipmentId?: string }) { let equipment = [...mockEquipment]; if (args.equipmentId) { equipment = equipment.filter((e) => e.id === args.equipmentId); } else if (args.status) { equipment = equipment.filter((e) => e.status === args.status); } return { content: [ { type: "text", text: JSON.stringify(equipment, null, 2), }, ], }; - src/index.ts:104-115 (registration)The registration of the 'get_equipment' tool in the MCP tool list.
name: "get_equipment", description: "Get equipment status from MES system. Can filter by status or get specific equipment.", inputSchema: { type: "object", properties: { status: { type: "string", enum: ["running", "idle", "maintenance", "error"], description: "Filter by equipment status", }, equipmentId: {