generate_eod_report
Generate end-of-day reports with sales summaries, cash reconciliation details, and action items for daily business operations.
Instructions
Generate end-of-day report with sales summary, cash reconciliation needs, and action items.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format (default: today) |
Implementation Reference
- src/index.ts:326-334 (schema)Input schema definition for the generate_eod_report tool, specifying an optional date parameter for the report.name: 'generate_eod_report', description: 'Generate end-of-day report with sales summary, cash reconciliation needs, and action items.', inputSchema: { type: 'object', properties: { date: { type: 'string', description: 'Date in YYYY-MM-DD format (default: today)' }, }, }, },
- src/index.ts:1030-1042 (handler)The core handler function for generate_eod_report that constructs the EOD report using sales data, low stock inventory, and appointments from the mock storeData.case 'generate_eod_report': { const date = String(args?.date || '2025-10-03'); const salesData = storeData.sales.find(s => s.date === date); const lowStock = storeData.inventory.filter(i => i.quantity <= i.reorderLevel); const appointments = storeData.appointments.filter(a => a.date === date); return { content: [{ type: 'text', text: `📋 End of Day Report - ${date}\n\n💰 SALES SUMMARY:\n- Revenue: $${salesData?.revenue.toFixed(2) || '0.00'}\n- Transactions: ${salesData?.transactions || 0}\n- Avg Transaction: $${salesData ? (salesData.revenue / salesData.transactions).toFixed(2) : '0.00'}\n\n⚠️ ACTION ITEMS:\n- ${lowStock.length} items need reordering\n- ${appointments.length} appointments completed\n\n📊 KEY METRICS:\n- Top Seller: ${salesData?.topItem || 'N/A'}\n- Inventory Alerts: ${lowStock.length}\n\n✅ CLOSING TASKS:\n□ Count cash drawer\n□ Review low stock report\n□ Confirm tomorrow's appointments\n□ Lock up and set alarm` }] }; }
- src/index.ts:516-518 (registration)Registers the list of all available tools, including generate_eod_report, for the MCP server's ListToolsRequestSchema.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });
- src/dashboard.ts:68-68 (registration)Lists the generate_eod_report tool in the dashboard's mock tools data for UI display.{ name: 'generate_eod_report', description: 'End of day report', category: 'Reporting' },