check_appointments
View scheduled appointments for specific dates or customers to manage your art supply store's calendar and customer bookings.
Instructions
Check scheduled appointments for a specific date or customer.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format (default: today) |
Implementation Reference
- src/index.ts:251-259 (schema)Tool schema definition including name, description, and input schema for the check_appointments tool. Part of the tools array returned by ListToolsRequestHandler.name: 'check_appointments', description: 'Check scheduled appointments for a specific date or customer.', inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'Date in YYYY-MM-DD format (default: today)' }, }, }, },
- src/index.ts:889-902 (handler)Handler implementation for check_appointments tool. Filters mock appointments data by date and returns formatted text response.case 'check_appointments': { const date = String(args?.date || new Date().toISOString().split('T')[0]); const appointments = storeData.appointments.filter(a => a.date === date); return { content: [{ type: 'text', text: appointments.length > 0 ? `📅 Appointments for ${date}:\n\n${appointments.map(apt => `⏰ ${apt.time} - ${apt.service}\n👤 Customer: ${apt.customerName}\n⏱️ Duration: ${apt.duration}` ).join('\n\n')}` : `No appointments scheduled for ${date}` }] };
- src/index.ts:54-57 (helper)Mock appointments data used by the check_appointments handler.appointments: [ { id: 'APT001', customerName: 'Sarah Martinez', service: 'Custom Framing Consultation', date: '2025-10-05', time: '14:00', duration: '30 min' }, { id: 'APT002', customerName: 'Lisa Park', service: 'Art Technique Workshop', date: '2025-10-06', time: '10:00', duration: '2 hours' }, ],
- src/index.ts:516-518 (registration)Registration of all tools list including check_appointments via ListToolsRequestHandler.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
- src/dashboard.ts:58-58 (registration)Mock tool registration in the dashboard server for UI display.{ name: 'check_appointments', description: 'View appointments', category: 'Operations' },