get_employee_schedule
Retrieve employee shift schedules and availability for effective staff planning and management at the art supply store.
Instructions
Get employee schedule and shift information for staffing planning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format or day of week |
Implementation Reference
- src/index.ts:930-941 (handler)Handler implementation for the 'get_employee_schedule' tool. It returns the list of employees with their roles, shifts, and hourly rates from the mock storeData, ignoring the date parameter.
case 'get_employee_schedule': { const date = String(args?.date || new Date().toLocaleDateString('en-US', { weekday: 'long' })); return { content: [{ type: 'text', text: `š„ Employee Schedule:\n\n${storeData.employees.map(emp => `${emp.name} - ${emp.role}\nš ${emp.shift}\nšµ Rate: $${emp.hourlyRate}/hr` ).join('\n\n')}` }] }; } - src/index.ts:274-283 (schema)Tool schema definition including name, description, and input schema for the date parameter.
{ name: 'get_employee_schedule', description: 'Get employee schedule and shift information for staffing planning.', inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'Date in YYYY-MM-DD format or day of week' }, }, }, }, - src/index.ts:58-62 (helper)Mock employee data used by the get_employee_schedule handler.
employees: [ { id: 'EMP001', name: 'Alex Johnson', role: 'Store Manager', shift: 'Mon-Fri 9AM-6PM', hourlyRate: 22 }, { id: 'EMP002', name: 'Maria Santos', role: 'Sales Associate', shift: 'Tue-Sat 10AM-7PM', hourlyRate: 16 }, { id: 'EMP003', name: 'David Kim', role: 'Art Specialist', shift: 'Wed-Sun 11AM-8PM', hourlyRate: 18 }, ] - src/index.ts:516-518 (registration)Registration of the ListToolsRequestHandler which exposes the tools list including get_employee_schedule.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; }); - src/dashboard.ts:60-60 (registration)Tool listed in dashboard mock data for UI display.
{ name: 'get_employee_schedule', description: 'Staff schedules', category: 'Operations' },